【问题标题】:Can't access my phpmyadmin无法访问我的 phpmyadmin
【发布时间】: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


【解决方案1】:

只需将$cfg['Servers'][$i]['auth_type'] = 'config'; 替换为$cfg['Servers'][$i]['auth_type'] = 'cookie';,然后您将获得登录页面,您可以在其中输入在conf.inc.php 文件中设置的用户名和密码

【讨论】:

  • 请注意,我认为您的意思是 config.inc.php 而不是 conf.inc.php
  • @IsaacBennetch 是的,你是对的,我前面的评论中已经提到过
猜你喜欢
  • 2014-04-21
  • 1970-01-01
  • 2016-07-30
  • 2017-09-06
  • 2017-03-02
  • 2012-09-27
  • 2014-12-25
  • 2016-09-03
相关资源
最近更新 更多