not able to connect to mysql I am getting the exception: "Data Source rejected establishment of connection"

lakshmi narayana <[email protected]>
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
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..


 		
---------------------------------
 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.