close

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

 

重要:記得操作前,先備份Xampp

解決方法:

Step1:將 Xampp\mysql\data 這個資料夾重新命名成另外一個名稱 例如 data_old
Step2:重新建立一個同名的資料夾 data
Step3:將【Xampp\mysql\backup】內的【所有檔案】複製 到新建立的 Xampp\mysql\data 裡
Step4:再從舊的 【 Xampp\mysql\data_old】 複製 【除了】mysql、performance_schema 以及 phpmyadmin 等資料夾的【所有檔案】,到新建立的 Xampp\mysql\data 裡
Step5:mysql/data_old/ibdata1 這個檔案 複製 到新建立的 Xampp\mysql\data 裡 
Step:最後 Start MySQL 在 XAMPP Control Panel 

如果有開啟成功,代表恭喜您可以正常使用了

 

參考資料:

https://stackoverflow.com/questions/18022809/how-to-solve-error-mysql-shutdown-unexpectedly

 

arrow
arrow

    Austin 發表在 痞客邦 留言(0) 人氣()