測試了下,在沒加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:17 [Note] C:/www/mysql/bin/mysqld-nt: ready for connections. Version: '5.0.45' socket: '' port: 3306 Source distribution
那三個文件就不會自動產生了。
您可能感興趣的文章:
Windows 64 位 mysql 5.7以上版本包解壓中沒有data目錄和my-default.ini及服務無法啟動的快速解決辦法(問題小結)Linux下MySQL5.7.18二進制包安裝教程(無默認配置文件my_default.cnf)MySQL 5.6 中的 TIMESTAMP 和 explicit_defaults_for_timestamp 參數MySQL 5.6 中TIMESTAMP with implicit DEFAULT value is deprecated錯誤MySQL之Field‘***’doesn’t have a default value錯誤解決辦法解決Default storage engine (InnoDB) is not available導致mysql無法啟動的修改辦法詳解MySQL中default的使用