Hey everyone, I wasnt sure where to put this so i thought this might be a good place, sorry if it is in the wrong section though.
Basically what im trying to do is connect to a database that is being hosted with my website (I created the database using cpanel), but now I am wondering how I could connect to it using java.
I have everything set up, bu i get an error " Exception: Access denied for user.."
Is there something you have to do when connecting to a database hosted somewhere besides localhost?
Here is what im doing to access my database right now
con = DriverManager.getConnection("jdbc:mysql://cksstudios.com:3306/cksstud_Test",
I even tried replacing cksstudios.com with the IP its being hosted at but still no luck, aslo i am not sure which port its being hosted at, so that might be a problem.
Thanks for the help