I have a mysql user called test_user
GRANT all privileges on *.* to 'test_user'@'%' identified by 'test_passwd'
I can use this user remotely from my JAVA code. When i run the code in the server, i got
Access denied for user 'test_user'@'test_host' (using password: YES)
I already ran FLUSH PRIVILEGES;
after grant all privileges for test_user and restarted the mysql service.
I tried to login mysql in the server using console
mysql -utest_user -ptest_passwd
ERROR 1045 (28000): Access denied for user 'test_user'@'localhost' (using password: YES)
It seems i can only using test_user
remotely but not from the server itself. Any suggestions to fix this?
-------New test----------
I tried to do not provide password in the server, it is working
mysql -utest_user
I need to use password for both remotely and locally. Any suggestions?