Plesk for Windows
Plesk for Linux
kb: technical
ABT: Group B
Applicable to:
- Plesk for Windows
- Plesk for Linux
症状
MySQL サーバの起動が失敗します。MySQL エラーログに以下のエラーメッセージが表示されます。
InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file .\\ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 10485760 bytes!
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Unknown/unsupported storage engine: INNODB
[ERROR] Aborting
解決策
Windows の場合:
-
構成ファイル
%plesk_dir%\\Databases\\MySQL\\data\\my.ini
に、以下の文字列を追加します。innodb_fast_shutdown=0
-
これで解決しない場合、
my.ini
でログサイズを必要サイズに変更し、ib_logfile0
とib_logfile1
を名称変更します。 In this example it is required to change log size to 5242880 bytes:innodb_log_file_size=5M
-
MySQL Server を起動します。
Linux の場合:
-
構成ファイル
/etc/my.cnf
に以下の文字列を追加します。innodb_fast_shutdown=0
-
問題が解決しない場合、
/etc/my.cnf
でログサイズを必要なサイズに変更します。この例では、ログサイズを 5242880 バイトに変更する必要があります。innodb_log_file_size=5M
-
ib_logfile0
とib_logfile1
を名称変更します。# mv /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile0_old
# mv /var/lib/mysql/ib_logfile1 /var/lib/mysql/ib_logfile1_old -
mysql サービスを起動します。
# service mysqld start
コメント
0件のコメント
サインインしてコメントを残してください。