Communication Link exception

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2007
Posts: 113
Reputation: abhi_elementx is an unknown quantity at this point 
Solved Threads: 6
abhi_elementx's Avatar
abhi_elementx abhi_elementx is offline Offline
Junior Poster

Communication Link exception

 
0
  #1
Apr 7th, 2009
Hi all.
I am trying to connect to MySQL database on a remote m/c(IP: 192.168.120.44)
Heres my code:
  1. System.out.println("Making new connection(object)..");
  2. Class.forName("com.mysql.jdbc.Driver").newInstance();
  3. con = DriverManager.getConnection("jdbc:mysql://192.168.120.44:3306/tox_erp10","root","tiger");
  4. 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.
PEACE !
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC