简体   繁体   中英

phpMyAdmin, can not login to root user

I just went through setting up a LEMP stack on my server and I then installed phpMyAdmin. It looks like I can not login due to the method the root user uses to connect.

This is the warning I get while checking the status of the mysql service

  • 1:26:01 [Warning] 'user' entry 'root@localhost' has both a password and an authentication plugin specified. The password will be ignored.

This is the error I receive on the phpMyAdmin webpage

  • 1698 - Access denied for user 'root'@'localhost'

I fixed the issue by executing

sudo mysql -u root
update user set plugin='' where User='root';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM