简体   繁体   English

phpMyAdmin,无法以root用户登录

[英]phpMyAdmin, can not login to root user

I just went through setting up a LEMP stack on my server and I then installed phpMyAdmin.我刚刚在我的服务器上设置了一个 LEMP 堆栈,然后我安装了 phpMyAdmin。 It looks like I can not login due to the method the root user uses to connect.由于 root 用户用于连接的方法,我似乎无法登录。

This is the warning I get while checking the status of the mysql service这是我在检查 mysql 服务状态时收到的警告

  • 1:26:01 [Warning] 'user' entry 'root@localhost' has both a password and an authentication plugin specified. 1:26:01 [警告]“用户”条目“root@localhost”同时指定了密码和身份验证插件。 The password will be ignored.密码将被忽略。

This is the error I receive on the phpMyAdmin webpage这是我在 phpMyAdmin 网页上收到的错误

  • 1698 - Access denied for user 'root'@'localhost' 1698 - 用户 'root'@'localhost' 的访问被拒绝

I fixed the issue by executing我通过执行解决了这个问题

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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