目次
innodbのログファイルサイズを変更した際、正しい段取りを踏まないと以下のエラーが発生する。
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 524288000 bytes! 140319 12:21:55 [ERROR] Plugin 'InnoDB' init function returned error. 140319 12:21:55 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 140319 12:21:55 [ERROR] Unknown/unsupported storage engine: InnoDB 140319 12:21:55 [ERROR] Aborting
以下の手順にて対策を行う。
mysql> SET GLOBAL innodb_fast_shutdown=0;
/etc/init.d/mysqld stop
cd [MySQLのDB領域] mv ib_logfile* /tmp
/etc/init.d/mysqld start
起動時にログファイルが生成されるため、初回起動時には通常より若干時間がかかる。