1. 程式人生 > >無法啟動MYSQL服務,發生系統錯誤1067,程序意外中止原因及解決方法

無法啟動MYSQL服務,發生系統錯誤1067,程序意外中止原因及解決方法

本人的另外一篇部落格有定位啟動失敗原因的方法,在此基礎上檢視啟動失敗的原因。

https://blog.csdn.net/a1257427517/article/details/84927457

通過檢視日誌,發現 unknown variable 'innodb_checksum_algorithm=0' 是該屬性導致啟動失敗

181209 14:01:54 [Note] Plugin 'FEDERATED' is disabled.
181209 14:01:54 InnoDB: The InnoDB memory heap is disabled
181209 14:01:54 InnoDB: Mutexes and rw_locks use Windows interlocked functions
181209 14:01:54 InnoDB: Compressed tables use zlib 1.2.3
181209 14:01:54 InnoDB: Initializing buffer pool, size = 8.0M
181209 14:01:54 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 50331648 bytes!
181209 14:01:54 [ERROR] Plugin 'InnoDB' init function returned error.
181209 14:01:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
181209 14:01:54 [ERROR] MySQL: unknown variable 'innodb_checksum_algorithm=0'


181209 14:01:54 [ERROR] Aborting

這個是5.6新增的功能,用來指定checksum的演算法,刪掉該屬性,繼續啟動發現錯誤變了

181209 14:04:00 [Note] Plugin 'FEDERATED' is disabled.
181209 14:04:00 InnoDB: The InnoDB memory heap is disabled
181209 14:04:00 InnoDB: Mutexes and rw_locks use Windows interlocked functions
181209 14:04:00 InnoDB: Compressed tables use zlib 1.2.3
181209 14:04:00 InnoDB: Initializing buffer pool, size = 8.0M
181209 14:04:00 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 50331648 bytes!
181209 14:04:00 [ERROR] Plugin 'InnoDB' init function returned error.
181209 14:04:00 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
181209 14:04:00 [ERROR] Unknown/unsupported storage engine: INNODB


181209 14:04:00 [ERROR] Aborting

在my.ini中找到default-storage-engine=INNODB value改為MYISAM即可。