phpmyadmin访问被拒绝xampp#1130

问题描述 投票:0回答:1

你好,当我回到我的笔记本电脑然后我的Xampp服务器无法工作时,我仍然感到困惑。它开始正常。但它给了我这个错误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

phpmyadmin xampp access
1个回答
0
投票

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

E.g.

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

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

© www.soinside.com 2019 - 2024. All rights reserved.