首页 > 解决方案 > 在 Xampp 中访问 phpMyAdmin 失败:设置无效

问题描述

我想连接到 phpmyadmin,无论我对 Xampp 的设置进行了多少更改,一个错误总是会停止该过程,那就是: 无效设置错误。phpMyAdmin 尝试连接 MySQL 服务器,但服务器拒绝连接。您应该检查配置中的主机、用户名和密码,并确保它们与 MySQL 服务器管理员提供的信息相对应。 我尝试了我在互联网和 YouTube 上看到的所有内容,但仍然有问题。如果您为此提供解决方案,我真的很感激。

此链接中错误的屏幕截图

这是我的config.inc.php文件设置:

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Lang'] = '';

/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = 'localhost:3307';
$cfg['Servers'][$i]['connect_type'] = 'tcp';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';

注意: Apache 和 Mysql 端口没问题,它们工作得很好

阿帕奇:447、8080 / mysql:3307

标签: phpmyadmin

解决方案


改变

$cfg['Servers'][$i]['AllowNoPassword'] = false;

$cfg['Servers'][$i]['AllowNoPassword'] = true;

因为您没有使用密码并配置您的服务器,所以拒绝没有密码的服务


推荐阅读