最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

MYSQL無法啟動提示: Default storage engine (InnoDB) is not available的解決方法

 更新時間:2011年05月01日 23:07:04   作者:  
自己用的MYSQL都是用MYISAM數(shù)據(jù)庫,還沒涉及到需要INNODB,因此打算直接不加載INNODB引擎。
在my.ini(linux下/etc/my.cnf)加上skip-innodb,就可以了。
我這樣設(shè)置后,在linux下都沒問題,今天在我本機winXP啟動MYSQL,提示啟動不起來??聪耺ysql目錄的錯誤日志:
引用
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

估計是上次加了參數(shù)后,一直沒啟動起來。。。已經(jīng)很久沒用本機的mysql了。
查了下,原來my.ini里有一句:default-storage-engine=INNODB,把默認(rèn)的engine設(shè)為INNODB,而我又加了skip-innodb,怪不得啟不來了。

將default-storage-engine改為MYISAM,MYSQL啟動OK!
在skip-innodb下,data目錄下的ibdata1,ib_logfile0,ib_logfile1這三個文件就不需要了,就可以刪除。

測試了下,在沒加skip-innodb時,刪除了這三個文件,啟動時會自動創(chuàng)建這三個文件,日志如下:
引用
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

那三個文件就不會自動產(chǎn)生了。

相關(guān)文章

最新評論

上饶市| 绥中县| 赞皇县| 乌兰县| 湖州市| 全州县| 中超| 北京市| 汝城县| 通海县| 大关县| 荔波县| 安顺市| 嘉峪关市| 仪征市| 商丘市| 太白县| 德昌县| 平昌县| 瑞金市| 奉贤区| 乌鲁木齐市| 隆安县| 长岛县| 宁蒗| 安塞县| 楚雄市| 稻城县| 黔南| 醴陵市| 武冈市| 大厂| 池州市| 淮北市| 越西县| 运城市| 大余县| 华亭县| 赣州市| 伊春市| 嘉善县|