How to run MySql scripts to give priveliges for a pirticular Database.
when i try to connect locally to my MySql database with the following syntax
String url = "jdbc:mysql://10.15.0.2:3306/unistal?user=root&password=";
connection = DriverManager.getConnection(url);
it works fine but when i connect to the actual database on the web server with actual userID and Password , it fails to connect .
I,am sure that i,am wrigin the correct password and username because i,am runnning my PHP scripts through the same username and password.
What could be the reason that i,am not able to connect to the server ?
PLease guide me a bit .
Thanks in advance