国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql InnoDB數據無法啟動解決辦法

2024-07-24 12:39:23
字體:
來源:轉載
供稿:網友

在my.ini(linux下/etc/my.cnf)加上skip-innodb,就可以了, 我這樣設置后,在linux下都沒問題,今天在我本機winXP啟動MYSQL,提示啟動不起來,看下mysql目錄的錯誤日志,引用.

出現如下語句:The ‘InnoDB' feature is disabled; you need MySQL built with ‘InnoDB' to have it working;

是mysql教程配置文件禁掉了這個選項,關閉mysql數據庫,在mysql的安裝目錄中找到my.ini文件,找到skip-innodb,在前面加上#號,保存,開啟mysql數據庫,搞定.

這也是開啟Mysql數據庫InnoDB功能的方法.

啟動不解決方法:

  1. 090613 10:15:27 [ERROR] Default storage engine (InnoDB) is not available  
  2. 090613 10:15:27 [ERROR] Aborting 
  3.  
  4. 090613 10:15:27 [Note] C:wwwmysqlbinmysqld-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時,刪除了這三個文件,啟動時會自動創建這三個文件,日志如下:

  1. 引用  
  2. InnoDB: The first specified data file .ibdata1 did not exist:  
  3. InnoDB: a new database to be created!  
  4. 090613 10:19:37 InnoDB: Setting file .ibdata1 size to 10 MB  
  5. InnoDB: Database physically writes the file full: wait...  
  6. 090613 10:19:37 InnoDB: Log file .ib_logfile0 did not exist: new to be created  
  7. InnoDB: Setting log file .ib_logfile0 size to 24 MB  
  8. InnoDB: Database physically writes the file full: wait...  
  9. 090613 10:19:38 InnoDB: Log file .ib_logfile1 did not exist: new to be created  
  10. InnoDB: Setting log file .ib_logfile1 size to 24 MB  
  11. InnoDB: Database physically writes the file full: wait...  
  12. InnoDB: Doublewrite buffer not found: creating new  
  13. InnoDB: Doublewrite buffer created  
  14. InnoDB: Creating foreign key constraint system tables  
  15. InnoDB: Foreign key constraint system tables created  
  16. 090613 10:19:39 InnoDB: Started; log sequence number 0 0  
  17. 090613 10:19:39 [Note] C:wwwmysqlbinmysqld-nt: ready for connections.  --Vevb.com 

再刪除這三個文件,加了skip-innodb后,啟動日志:

  1. 引用 
  2.  
  3. 090613 10:30:12 [Note] C:wwwmysqlbinmysqld-nt: Normal shutdown 
  4.  
  5. 090613 10:30:12 [Note] C:wwwmysqlbinmysqld-nt: Shutdown complete 
  6.  
  7. 090613 10:30:17 [Note] C:wwwmysqlbinmysqld-nt: ready for connections.  
  8. Version: '5.0.45' socket: '' port: 3306 Source distribution

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 霍城县| 巴彦淖尔市| 洮南市| 建瓯市| 平泉县| 上犹县| 乐至县| 长葛市| 公安县| 寿宁县| 怀柔区| 鹤山市| 额敏县| 长春市| 建始县| 宿松县| 湖北省| 益阳市| 麟游县| 思茅市| 大英县| 马山县| 虎林市| 专栏| 九寨沟县| 丹棱县| 大连市| 云南省| 九江县| 宜君县| 伊春市| 彰武县| 武川县| 大姚县| 合江县| 秦皇岛市| 陵川县| 武城县| 南安市| 延长县| 定州市|