can't connect to remote database on other machine with java
Posted by: As'ad Djamalilleil
Date: December 15, 2011 04:33PM

hi guys,
i'm using connector/j to connect to a remote database on an win xp machine but can not connect.

...
Class.forName("com.mysql.jdbc.Driver");
link = DriverManager.getConnection("jdbc:mysql://ursyalim:3306/dbmhs","root","");
...

ursyalim's ip is 192.168.0.4, i try to connect from comp "rainbow" with ip 192.168.0.2.

i have created a privilege in the databse to host 192.168.0.2 with no password.

i try to telnet like this "telnet ursyalim 3306" but got no connection.

can somebody help me please ,,

Options: ReplyQuote




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.