• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[Solved] SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

Kepala Suku

Web & Mobile Developer
Staff member
#1
How to solve root user can not login via phpmyadmin. Use SSH and run below command:
Bash:
sudo mysql -u root
[mysql] use mysql;
[mysql] update user set plugin='' where User='root';
[mysql] flush privileges;
[mysql] \q