【发布时间】:2016-07-31 18:26:43
【问题描述】:
最近我通过 MySQL 控制台为我的 MySQL 数据库设置了密码。
之后,我无法访问我的 PHPMyAdmin 页面。我什至无法进入登录屏幕!显示此错误:
我该如何解决这个问题?
【问题讨论】:
-
PHPMyAdmin 似乎设置为使用 root 用户,因此更新配置以包含 root 用户密码以允许其连接。
-
检查您的 config.inc.php 文件并检查 $cfg['Servers'][$i]['auth_type'] = 'cookie';然后检查用户名并通过是否有root和空密码以及 $cfg['Servers'][$i]['AllowNoPassword'] = true;
-
告诉我如何重置我的密码并回到我以前的位置,密码为空且用户等于root。 @JimL
-
只需替换 $cfg['Servers'][$i]['auth_type'] = 'config'; withe $cfg['Servers'][$i]['auth_type'] = 'cookie';你会得到登录页面
-
非常感谢@Rmidi Ayoub
标签: php mysql phpmyadmin