I used
grant all on mydb.* TO user1@"localhost" identified by "user1"
And getting following error when access the mysql from a separate physical box.
This is a mysql cluster(Mysql server version 5.1.56). And connector jar is mysql-connector-java-5.1.26.jar.
Any ideas?
Caused by: java.sql.SQLException: Access denied for user 'user1'@'166.31.44.23' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078) ...