I have a public IP system. In that I have installed WAMP. And I have written a java code to establish jdbc connection with the mysql installed in the public ip system.
My Database connection fails miserably,
Connection con = DriverManager
.getConnection("jdbc:mysql://localhost/Test123","usr","123");
If my public ip is example.com, can i try
Connection con = DriverManager
.getConnection("jdbc:mysql://example.com/Test123","usr","123");
Even this fails.
My main problem is I don't know how to establish connection using java code with WAMP MYSQL Database in public ip system.
Please help me!!