Skip navigation links

MySQL Forums :: Connector/JDBC and Java :: connection problem in LAN


Advanced Search

connection problem in LAN
Posted by: Francesca Micelli ()
Date: June 14, 2010 06:09AM

Hi! I have a serious connection problem...please help me!
I have a stand alone java application that connects to a mysql db.
Other PC use this application in LAN, but when other PC call this application, the connection on mysql db is refused.

the connection string is

Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/dbName?user=root&password=root");

and the rows in the user table are

'%', 'root', '*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0

and

'localhost', 'root', '*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0

please help me...what's the problem?

Options: ReplyQuote


Subject Written By Posted
connection problem in LAN Francesca Micelli 06/14/2010 06:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.