LoginSignup
12
15

More than 5 years have passed since last update.

innodb_log_file_size を変えたら ib_logfile* の削除が必要

Last updated at Posted at 2015-06-22

MySQL 5.6.7 以前において、my.cnf で innodb_log_file_size を追加ないしは変更した際には、/var/lib/mysql/ib_logfile* を削除しないと、

InnoDB: Error: log file ib_logfile0 is of different size 0 5242880 bytes

というようなエラーメッセージが出て、MySQL が起動しません。

削除の際は、データ破損などの危険があるため、このページの "InnoDB ログファイルの数またはサイズの変更、および InnoDB テーブルスペースのサイズの変更" セクションの手順に従って削除を行って下さい。

参考: こちらの記事も、同様の現象が発生したようです。

12
15
4

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
12
15