Hi all.
I am trying to connect to MySQL database on a remote m/c(IP: 192.168.120.44)
Heres my code:
System.out.println("Making new connection(object)..");
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://192.168.120.44:3306/tox_erp10","root","tiger");
System.out.println("Done");
I am using netbeans IDE. I can connect to the remote database thru SERVICES in netbeans.
But the code doesnt work..
It raises an exception saying Communication Link error.