MySQL会话不会在XAMPP上启动

时间:2020-03-05 06:10:46

标签: php mysql xampp

我的MySQL无法启动,它显示如下:

SELECT SUM(CASE WHEN TRANSACTION = 'success' THEN 1 ELSE 0 END) AS success_total,
       SUM(CASE WHEN TRANSACTION = 'success' THEN AMOUNT ELSE 0 END) AS success_Amount,
       SUM(CASE WHEN TRANSACTION = 'cancel' THEN 1 ELSE 0 END) AS Fail_total,
       SUM(CASE WHEN TRANSACTION = 'cancel' THEN AMOUNT ELSE 0 END) AS Fail_Amount,
       COUNT(*) AS total, SUM(ABS(AMOUNT)) AS Total_Amount
FROM success_log;

然后是错误日志:

12:50:50  [mysql]   Error: MySQL shutdown unexpectedly.
12:50:50  [mysql]   This may be due to a blocked port, missing dependencies, 
12:50:50  [mysql]   improper privileges, a crash, or a shutdown by another method.
12:50:50  [mysql]   Press the Logs button to view error logs and check
12:50:50  [mysql]   the Windows Event Viewer for more clues
12:50:50  [mysql]   If you need more help, copy and post this
12:50:50  [mysql]   entire log window on the forums

这些错误的原因是什么,我该如何纠正它们?

非常感谢您。

1 个答案:

答案 0 :(得分:5)

此问题转到:

c:\ xampp \ mysql \ data \

并删除目录以外的所有文件

以防万一保留my.ini,如果再次遇到错误,也删除my.ini。

希望对您有帮助。

相关问题