5:57:28 [mysql] Error: MySQL shutdown unexpectedly.
5:57:28 [mysql] This may be due to a blocked port, missing dependencies,
5:57:28 [mysql] improper privileges, a crash, or a shutdown by another method.
5:57:28 [mysql] Press the Logs button to view error logs and check
5:57:28 [mysql] the Windows Event Viewer for more clues
5:57:28 [mysql] If you need more help, copy and post this
5:57:28 [mysql] entire log window on the forums
XAMPPのコントロールパネルでMySQLを 「Stop」せずにWindowsをシャットダウンした場合、 MySQLが正しく終了せず、内部ファイルが破損してエラーが起こることがあります。
mysql/data
フォルダをバックアップdata
フォルダ内のファイルをすべて削除mysql/backup
フォルダの中身をコピーdata
フォルダへ貼り付け。ibdata1
を戻すdata
フォルダから ibdata1
をコピーし、上書き。
data
に戻す。
ibdata1
にはInnoDB型のデータがすべて保存されているため、これを失うと復旧は困難です。