SQL in an applet on a server....
I made a march madness bracket applet for a fundraiser (March Madness Bracket) and it all works fine except it wont connect to submit to an SQL Server.
When I was developing it, I could connect remotely with my server's IP just fine, but when I put all the applet and html files on the server for the site and change it to localhost, it will not connect anymore.
I could connect fine remotely with my IP whitelisted but when it is on the server trying to access the database at localhost, it wont connect.
my connect statement is:
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/dataebase_name","user","pass");
obviously i removed my user info from it and before it worked with the IP address with port 3306, and localhost with port 3306 doesnt work, I tried.