hi,
I am working on linux,I am not able to make a connection to mysql server.
when I connect to mysql through java the following exception is raising:
java.sql.SQLException: Data source rejected establishment of connection,
message from server: "Host '10.6.0.172' is not allowed to connect to this MySQL
server"
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
at com.mysql.jdbc.Connection.<init>(Connection.java:452)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at test.main(test.java:29)
I am able to go to mysql through terminal ,create tables ,and insert data.. What
would be the problem could u please help me... I used
"mysql-connector-java-3.0.17-ga" package to connect..