I can`connect to my database with via servlet. The connection works well in PHP but not with servlet. I have googled but no solution. this is my error page I got java.sql.SQLException: Data source rejected establishment of connection, message from server: "Host 'localhost.localdomain' 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:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at Liep.doGet(Liep.java:30) ... ... Can anyone help or give me a pointer to a website Byfour
--------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping