phpmyadmin - 在 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
解决方案
改变
$cfg['Servers'][$i]['AllowNoPassword'] = false;
至
$cfg['Servers'][$i]['AllowNoPassword'] = true;
因为您没有使用密码并配置您的服务器,所以拒绝没有密码的服务
推荐阅读
- c# - 在将 Unity3d WebGL 项目构建连接到数据库时遇到问题,在编辑器中工作正常
- java - 绕过-android-usb-host-permission-confirmation-dialog
- c - 如何在 C 中隐藏结构的某些字段?
- apache - 无法通过本地网络中的公共 IP 地址访问我的 XAMPP
- python - 井字游戏,我想为用户提供在游戏过程中保存游戏的选项(在第一次移动之后)。这是我当前代码的一部分
- angular - 如何在不使用指令/管道“翻译”的情况下翻译我的消息?
- ubuntu - 如何增加 Homestead Vagrant 的存储空间?
- mongodb - MongoDB 在集合的每个文档中过滤数组字段
- python - 将numpy数组读取为全部小写
- javascript - javascript - 如何在数组中添加具有值的新项目