使用XAMPP对代码进行测试,谁知第二天准备继续进行测试时,出现只有MySQL不能启动的现象。
测试环境:
- Windows 11
- XAMPP Version:XAMPP Control Panel v3.3.0
- PHP Version:8.0.25
- MySQL Version:15.1 Distrib 10.4.27-MariaDB
错误分析:
打开MySQL的错误信息时,发现了以下的信息。
[Note] Plugin 'FEEDBACK' is disabled.
[ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
[ERROR] Failed to initialize plugins.
[ERROR] Aborting
从以上的错误信息来看,显示MySQL数据库的(aria tables)出现了问题。
解决方法:
对MySQL数据库的(aria tables)进行修复。修复方法如下。
- 执行以下的「raia_chk.exe」命令、对(aria tables)进行修复。
- \xampp\mysql\data\mysql>..\..\bin\aria_chk.exe -r *.MAI
- 删除「aria_log.*」系列文件。
- \xampp\mysql\data>del aria_log.*
总结:
执行完上述操作后,重新启动XAMPP,可以发现MySQL可以重新启动。