Hi all,
I am using tomcat 7.0/hibernate 3.6.8 final on mac xOS 10.8.3. My eclipse development environment stop working with the following message:
Caused by: java.sql.SQLException: null, message from server: "Host '192.168.1.104' is not allowed to connect to this MySQL server" at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
Actually, my configuration uses "localhost" in spring framework:
jdbc:mysql://localhost:3306/mydb
If my computer is offline, it works fine. However, "localhost" is automatically converted to IP address if my system is connected to network. Since the database is only authenticated for "user@localhost", it will throw above exception. Any suggestion will be appreciated.
Thanks, -ZJ
|