You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

XAMPP启动后phpMyAdmin连接MySQL报错求助(未修改账号密码)

启动XAMPP时MySQL连接错误求助

启动XAMPP服务器时,我遇到了一系列连接错误,但在停止XAMPP并关机前,我并未修改任何用户名或密码。

最初报错信息如下:

Cannot connect: invalid settings.
Packets out of order. Expected 0 received 1. Packet size=68
mysqli::real_connect(): Error while reading greeting packet. PID=5140
mysqli::real_connect(): (HY000/2006): MySQL server has gone away
Connection for controluser as defined in your configuration failed.
Packets out of order. Expected 0 received 1. Packet size=68
mysqli::real_connect(): Error while reading greeting packet. PID=5140
mysqli::real_connect(): (HY000/2006): MySQL server has gone away
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

之后我将配置项$cfg['Servers'][$i]['AllowNoPassword'] = true;修改为false;,现在仅显示以下错误:

phpMyAdmin tried to connect to the MySQL server,
and the server rejected the connection.
You should check the host, username and password in your configuration and make sure that 
they correspond to the information given by the administrator of the MySQL server.

恳请协助解决该连接问题。

内容的提问来源于stack exchange,提问作者Sandeep Himasha

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.15 20:45:31