xampp phpmyadmin 访问被拒绝错误(#2002) [英] xampp phpmyadmin access denied error(#2002)
问题描述
大家好,我在 3306 上运行了 mysql 服务器.我完全卸载了它并安装了 XAMPP.一开始没有运行mysql,然后我在my.ini中把端口改成3307以及CP的配置.它显示状态为正在运行,但 phpmyadmin 出现访问被拒绝的错误.我尝试了很多解决方案,但没有帮助.有人请帮助我.提前致谢.
Hi everyone i had mysql server running on 3306. I uninstalled that completely and installed XAMPP. Mysql was not running at the beginning, then I changed the port to 3307 in my.ini as well as configuration of CP. It is showing status as running now but phpmyadmin is giving error as access denied. I tried so many solutions but didnt help. Someone please help me. Thanks in advance.
推荐答案
试试这个.
转到安装 Xampp 的目录.让我们称之为 xampp.现在在任何文本编辑器中打开文件 xampp/phpMyAdmin/config.inc.php.
Go to the directory where Xampp is installed. Lets call it xampp. Now open the file xampp/phpMyAdmin/config.inc.php in any text editor.
现在找到这一行
$cfg['Servers'][$i]['host'] = 'localhost';
并将其更改为
$cfg['Servers'][$i]['host'] = 'localhost:3307';
注意:如果您使用的是 Windows,默认情况下 xampp 安装在 C:xampp
Note: If you are on Windows, xampp is by default installed in C:xampp
这篇关于xampp phpmyadmin 访问被拒绝错误(#2002)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!