phpmyadmin访问被拒绝xampp#1130

时间:2018-03-02 12:55:20

标签: phpmyadmin xampp access

你好,当我回到我的笔记本电脑然后我的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

1 个答案:

答案 0 :(得分:0)

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

E.g。

在你的dbname上全部授予。*''root'@'localhost'通过'rootpassword'识别

请替换dbname&密码根据您的配置。

相关问题