xampp運行MySQL數據時出現 Error: 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數據庫意外關閉。
解決辦法:
在xampp軟件界面找到MySQL組件,點擊其組件下的config按鈕,打開mysql配置文件(位置如下圖);
[
在mysql配置文件內搜索到[mysqld]所在行,在其下方插入
[mysqld]
innodb_force_recovery = 4
保存后關閉記事本(位置如下圖);
[
這時重新運行MySQL組件,是不是發現問題已經解決了呢!
轉自:https://jingyan.baidu.com/article/90895e0ff0fd1864ec6b0b1c.html