xampp運行MySQL shutdown unexpectedly解決方法


xampp運行MySQL數據時出現 Error: MySQL shutdown unexpectedly.解決方案

xampp運行MySQL shutdown unexpectedly解決方案

故障描述:

12:15:46 [mysql] Attempting to start MySQL app...

12:15:47 [mysql] Status change detected: running

12:15:47 [mysql] Status change detected: stopped

12:15:47 [mysql] Error: MySQL shutdown unexpectedly.

12:15:47 [mysql] This may be due to a blocked port, missing dependencies,

12:15:47 [mysql] improper privileges, a crash, or a shutdown by another method.

12:15:47 [mysql] Press the Logs button to view error logs and check

12:15:47 [mysql] the Windows Event Viewer for more clues

12:15:47 [mysql] If you need more help, copy and post this

12:15:47 [mysql] entire log window on the forums

故障說明:

在我們啟動xampp時,發現Apache可以正常啟動;而MySQL卻不能正常運行。我們稱它為MySQL意外關機。這是由於端口被占用,或者缺少運行特權,崩潰而導致MySQL數據庫意外關閉。

image-20200529185405654

解決辦法:

在xampp軟件界面找到MySQL組件,點擊其組件下的config按鈕,打開mysql配置文件(位置如下圖);

[xampp運行MySQL shutdown unexpectedly解決方案

在mysql配置文件內搜索到[mysqld]所在行,在其下方插入

[mysqld]

innodb_force_recovery = 4

保存后關閉記事本(位置如下圖);

[xampp運行MySQL shutdown unexpectedly解決方案

這時重新運行MySQL組件,是不是發現問題已經解決了呢!

轉自:https://jingyan.baidu.com/article/90895e0ff0fd1864ec6b0b1c.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM