Java JDBC local,remote connection error
Posted by: David Dobson
Date: October 01, 2010 03:26PM

Hi Everyone

I have been developing a Java based system to monitor a number of computers of a local network. To do this I have a simple Java application (with JDBC connectivity) that updates a database every 60 seconds with the information about the specific client the java application is running on.

This all works fine, however when I come to run the same application on the server that holds the MySQL database I got the following error:

SEVERE: null
java.sql.SQLException: Data source rejected establishment of connection, message from server: "Host '' is not allowed to connect to this MySQL server"
at com.mysql.jdbc.MysqlIO.doHandshake(
at com.mysql.jdbc.Connection.createNewIO(
at com.mysql.jdbc.Connection.<init>(
at com.mysql.jdbc.NonRegisteringDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(

I believe it may have something to do with the mySQL setting 'bind-address' settings (which is currently set to

Any suggestions would be greatly appreciated :)


Options: ReplyQuote

Written By
Java JDBC local,remote connection error
October 01, 2010 03:26PM

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.