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

XAMPP无法连接MySQL数据库及phpMyAdmin访问失败问题求助

XAMPP无法连接MySQL数据库及phpMyAdmin访问失败问题求助

大家好,我现在碰到了一个棘手的问题:用XAMPP控制面板启动MySQL服务器后,服务器看起来运行状态正常,但点击面板上的Admin按钮打开phpMyAdmin时,浏览器直接报错。

先给大家贴一下最近一次启动MySQL的日志,我反复看了好几遍,没发现明显异常:

2023-06-20 15:52:11 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2023-06-20 15:52:11 0 [Note] InnoDB: Uses event mutexes
2023-06-20 15:52:11 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
2023-06-20 15:52:11 0 [Note] InnoDB: Number of pools: 1
2023-06-20 15:52:11 0 [Note] InnoDB: Using SSE2 crc32 instructions
2023-06-20 15:52:11 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2023-06-20 15:52:11 0 [Note] InnoDB: Completed initialization of buffer pool
2023-06-20 15:52:11 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=2212605
2023-06-20 15:52:11 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2023-06-20 15:52:11 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2023-06-20 15:52:11 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-06-20 15:52:11 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-06-20 15:52:11 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2023-06-20 15:52:11 0 [Note] InnoDB: Waiting for purge to start
2023-06-20 15:52:11 0 [Note] InnoDB: 10.4.27 started; log sequence number 2212614; transaction id 2984
2023-06-20 15:52:11 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2023-06-20 15:52:11 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-06-20 15:52:11 0 [Note] Server socket created on IP: '::'.

不过当天早上第一次出现问题时,错误日志里有这些异常内容:

2023-06-20 09:37:32 0x2b382023-06-20 09:37:32 0x86bc  InnoDB: Assertion failure in file D:\winx64-packages\build\src\storage\innobase\os\os0file.cc line 6154
InnoDB: Failing assertion: slot
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: about forcing recovery.

2023-06-20 09:37:32 0x8a7c  InnoDB: Assertion failure in file D:\winx64-packages\build\src\storage\innobase\os\os0file.cc line 6154
InnoDB: Failing assertion: slot
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: about forcing recovery.

除了phpMyAdmin的问题,我在Visual Paradigm里测试数据库连接也失败了;而且用Eclipse开发Java Web应用做数据库操作(比如创建用户)时,控制台每次都会弹出这个错误:

Cannot connect to database
java.sql.SQLException: null,  message from server: "Host 'localhost' is not allowed to connect to this MariaDB server"
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:828)
at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:448)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:241)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
at org.orm.ertodb.DriverWrapper.connect(DriverWrapper.java:27)
at v.aam.c.a(:66)
at v.aam.c.b(:78)
at v.aam.av.run(:25)

还有个让我困惑的点:我明明选的是InnoDB作为存储引擎,为什么错误提示里说连接的是MariaDB服务器?

另外,我完全没有修改过数据库或服务器的配置,上次能正常连接到现在没动过任何设置,连接用的IP是127.0.0.1,端口是3306。

有没有大佬能帮我分析下这是怎么回事?万分感谢!

备注:内容来源于stack exchange,提问作者LucaDanielG

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.22 10:37:58