no access to connect with mysql

Posted April 12, 2015 1.7k views

Hi i am trying to connect with my mysql server running on centos 7

But its saying: Acces denied for user data@myip. and i can’t connect to root either.

please help me?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

I fixed it using a query:

update user set host=’%’ where host=‘localhost’;