MYSQL沒法啟動提醒: Default storage engine (InnoDB) is not available的處理辦法。本站提示廣大學習愛好者:(MYSQL沒法啟動提醒: Default storage engine (InnoDB) is not available的處理辦法)文章只能為提供參考,不一定能成為您想要的結果。以下是MYSQL沒法啟動提醒: Default storage engine (InnoDB) is not available的處理辦法正文
在my.ini(linux下/etc/my.cnf)加上skip-innodb,便可以了。
我如許設置後,在linux下都沒成績,明天在我本機winXP啟動MYSQL,提醒啟動不起來。看下mysql目次的毛病日記:
援用
090613 10:15:27 [ERROR] Default storage engine (InnoDB) is not available
090613 10:15:27 [ERROR] Aborting
090613 10:15:27 [Note] C:\www\mysql\bin\mysqld-nt: Shutdown complete
估量是前次加了參數後,一向沒啟動起來。。。曾經良久沒用本機的mysql了。
查了下,本來my.ini裡有一句:default-storage-engine=INNODB,把默許的engine設為INNODB,而我又加了skip-innodb,怪不得啟不來了。
將default-storage-engine改成MYISAM,MYSQL啟動OK!
在skip-innodb下,data目次下的ibdata1,ib_logfile0,ib_logfile1這三個文件就不須要了,便可以刪除。
測試了下,在沒加skip-innodb時,刪除這三個文件,啟動時會主動創立這三個文件,日記以下:
援用
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
090613 10:19:37 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
090613 10:19:37 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 24 MB
InnoDB: Database physically writes the file full: wait...
090613 10:19:38 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 24 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
090613 10:19:39 InnoDB: Started; log sequence number 0 0
090613 10:19:39 [Note] C:\www\mysql\bin\mysqld-nt: ready for connections.
再刪除這三個文件,加了skip-innodb後,啟動日記:
援用
090613 10:30:12 [Note] C:\www\mysql\bin\mysqld-nt: Normal shutdown
090613 10:30:12 [Note] C:\www\mysql\bin\mysqld-nt: Shutdown complete
090613 10:30:17 [Note] C:\www\mysql\bin\mysqld-nt: ready for connections.
Version: '5.0.45' socket: '' port: 3306 Source distribution
那三個文件就不會主動發生了。