【问题标题】:phpmyadmin access denied xampp #1130phpmyadmin 访问被拒绝 xampp #1130
【发布时间】:2018-08-10 16:39:49
【问题描述】:

您好,当我重新启动笔记本电脑时,我仍然感到困惑,然后我的 Xammp 服务器无法正常工作。 它正常启动。 但它给了我这个错误 https://i.stack.imgur.com/SWiWh.png

but its give me this error

我到了这个位置 \Xampp\phpMyAdmin\ 并打开这个 config.inc 和

更改 $cfg['Servers'][$i]['password'] = '';

$cfg['Servers'][$i]['password'] = 'abc123'; 但还是不行。

知道我改变的其他方法

$cfg['Servers'][$i]['auth_type'] = 'config';

$cfg['Servers'][$i]['auth_type'] = 'cookie'; 但知道它给了我这个错误 https://i.stack.imgur.com/c2Dn7.png

enter image description here

but know its give me this error

【问题讨论】:

  • 在出现第一个错误之前,您是否修改了 XAMPP 默认提供的 phpMyAdmin 配置?通常它是经过配置的,以便您可以连接到您的数据库。如果您没有存储任何重要数据,我强烈建议您完全删除并重新安装。

标签: phpmyadmin xampp


【解决方案1】:

这是由于不正确的 mysql 用户权限设置 - 其中 mysql 服务器不允许用户(您尝试使用它连接 & 对于 XAMPP,可能是“root”)从 localhost 连接。您需要授予此用户从 localhost 访问所有或特定数据库的权限。

例如

GRANT ALL ON yourdbname.* TO 'root'@'localhost' IDENTIFIED BY 'rootpassword'

请根据您的配置替换数据库名称和密码。

【讨论】:

  • 我该怎么做请给我例子
猜你喜欢
  • 2016-04-02
  • 1970-01-01
  • 2017-08-11
  • 2014-05-23
  • 2020-07-09
  • 1970-01-01
  • 2016-01-02
  • 2013-12-11
  • 2016-02-07
相关资源
最近更新 更多