Database connection for server
I have a hosting on net, and have created a database using phpMyadmin provided in cpanel.
so i make a code in netbeans and write the connection statement.
Now when running the code on netbeans and submiting values to database,
String url = "jdbc:mysql://www.Mywebsite.com:2082/My_TestDB";
Connection con = DriverManager.getConnection(url,"My_userid","Password");
it gives error.
Please tell me what are the things i am doing wrong.
I am also confused with the installation of connector J, on my windows, i mean i have run the Jar but nothing happers, does it workes silently??