LoginSignup
6
5

More than 3 years have passed since last update.

XAMPPのmysqlがError: MySQL shutdown unexpectedly.で立ち上がらなくなった時の対処方法

Posted at

XAMPPのmysqlが以下のようなエラーを表示して動かなくなった。
ポートがコンフリクトしているように見えるので、利用ポートを変えてみたり、明示的にmysqlをシャットダウンしてみたり、ibdataとib_logfileを削除してから再起動を試みたがなおらず・・・

16:59:23  [mysql]   Error: MySQL shutdown unexpectedly.
16:59:23  [mysql]   This may be due to a blocked port, missing dependencies, 
16:59:23  [mysql]   improper privileges, a crash, or a shutdown by another method.
16:59:23  [mysql]   Press the Logs button to view error logs and check
16:59:23  [mysql]   the Windows Event Viewer for more clues
16:59:23  [mysql]   If you need more help, copy and post this
16:59:23  [mysql]   entire log window on the forums
2020-02-25 16:59:22 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-02-25 16:59:22 0 [Note] InnoDB: Uses event mutexes
2020-02-25 16:59:22 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-02-25 16:59:22 0 [Note] InnoDB: Number of pools: 1
2020-02-25 16:59:22 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-02-25 16:59:22 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-02-25 16:59:22 0 [Note] InnoDB: Completed initialization of buffer pool
2020-02-25 16:59:22 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-02-25 16:59:22 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-02-25 16:59:22 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-02-25 16:59:22 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-02-25 16:59:22 0 [Note] InnoDB: Waiting for purge to start
2020-02-25 16:59:22 0 [Note] InnoDB: 10.4.11 started; log sequence number 47082; transaction id 9
2020-02-25 16:59:22 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-02-25 16:59:22 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-02-25 16:59:22 0 [Note] InnoDB: Buffer pool(s) load completed at 200225 16:59:22
2020-02-25 16:59:22 0 [Note] Server socket created on IP: '::'.

【対処方法:再インストールに次ぐ最終手段】
注意:自分が作ったデータベースのデータは消えるのでバックアップを取っておくなどしておいてください

xampp\mysql\backupフォルダにあるフォルダとファイルをCtrl+cですべてコピーし
そのデータをxampp\mysql\dataディレクトリに上書きでペースト(Ctrl+v)する。

再度XAMPPからMySQLをStartさせると動き始める(場合がある)。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5