Want to solve programming problems and get paid for it? If that sounds interesting to you then contact us.
Facing following jdbc issue
caused by: com.mysql.jdbc.exceptions.jdbc4.communicationsexception: communications link failure
Please find below best solution for your problem,
Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/DBname", "root", "root");
Now replace the Localhost with your IP address
Connection con = DriverManager.getConnection( "jdbc:mysql://192.0.0.000:3306/DBname", "root", "root");