MySQL 5.0.2 refuse remote JDBC connection but allow mysql client connection
Posted by: zhuomin chen
Date: June 10, 2005 11:39AM

Hi, All

This is strange.

When I use mysql client as

mysql -u mfg -ppassword -h 192.168.0.248

server allows connection.

However
using JDBC connection as
"jdbc:mysql://127.0.0.1/mfg?user=mfg&password=password"

I get connection refused.

Even more bizard, when I switch to root
jdbc:mysql://127.0.0.1/mfg?user=root&password=password" , it worked.

So Server (MySQL 5.0.2) treats JDBC connection differently from MySQL Client?

Options: ReplyQuote


Subject
Written By
Posted
MySQL 5.0.2 refuse remote JDBC connection but allow mysql client connection
June 10, 2005 11:39AM


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.