• 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
How to solve root user can not login via phpmyadmin. Use SSH and run below command:
sudo mysql -u root
[mysql] use mysql;
[mysql] update user set plugin='' where User='root';
[mysql] flush privileges;
[mysql] \q