1. 程式人生 > >MySQL服務無法啟動1067系統報錯

MySQL服務無法啟動1067系統報錯

解決思路:

1.檢視系統日誌,找到具體的錯誤原因

2.百度谷歌定位具體的問題,比如我這裡遇到的InnoDB函式返回錯誤,通過搜尋得到以下解決方法,問題解決。

MySQL Plugin 'InnoDB' init function returned error. . . 在MySQL的配置檔案中,設定default-table-type=InnoDB,發現MySQL無法正常的啟動,錯誤日誌中給出瞭如下的資訊:  引用 00703 09:28:53 mysqld_safe Starting mysqld daemon with databases from /root/sandboxes/spider_main/data  InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes  InnoDB: than specified in the .cnf file 0 134217728 bytes!  100703  9:28:54 [ERROR] Plugin 'InnoDB' init function returned error.  100703  9:28:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.  100703  9:28:54 [Note] Found 1 prepared transaction(s) in SPIDER  100703  9:28:54 [Warning] Found 1 prepared XA transactions  100703  9:28:54 [Note] Event Scheduler: Loaded 0 events  100703  9:28:54 [Note] /home/spider/mysql-5.1.44/5.1.44/bin/mysqld: ready for connections.  Version: '5.1.44'  socket: '/tmp/mysql_sandbox5144.sock'  port: 3306  Source distribution  100703  9:34:59 [Note] /home/spider/mysql-5.1.44/5.1.44/bin/mysqld: Normal shutdown 調查得知,只要刪除MySQL目錄下的ib_logfile0和ib_logfile1兩個檔案,就可以解決問題了。