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...