mysql錯誤: [ERROR] InnoDB: auto-extending data file /data/ibdata1 is of a different size 768 pages...

weixin_33912445發表於2017-11-08

mysql報錯:

2017-11-06 11:17:22 24013 [ERROR] InnoDB: auto-extending data file /data/ibdata1 is of a different size 768 pages (rounded down to MB) than specified in the .cnf file: initial 1600 pages, max 0 (relevant if non-zero) pages!

2017-11-06 11:17:22 24013 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!

2017-11-06 11:17:22 24013 [ERROR] Plugin 'InnoDB' init function returned error.

2017-11-06 11:17:22 24013 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

2017-11-06 11:17:22 24013 [ERROR] Unknown/unsupported storage engine: InnoDB

2017-11-06 11:17:22 24013 [ERROR] Aborting


問題解決:


切換到資料存放目錄,刪除下邊的檔案重啟即可

[root@test data]# rm ibdata1

rm:是否刪除普通檔案 "ibdata1"?y

[root@test data]# rm ib_logfile0

rm:是否刪除普通檔案 "ib_logfile0"?y

[root@test data]# rm ib_logfile1

rm:是否刪除普通檔案 "ib_logfile1"?y

相關文章