安裝 MySQL 選擇「Non-Transactional Database Only」(僅 MyISAM),導入 WordPress 數據庫(InnoDB 表)後,訪問 phpMyAdmin 觸發 mysqld-nt.exe 內存讀取錯誤,服務崩潰。
MySQLInstanceConfig.exeibdata1 路徑Error 1067: 進程意外中止
InnoDB: Error: log file .\ib_logfile0 is of different size 0 52428800 bytes
InnoDB: than specified in the .cnf file 0 10485760 bytes!
[ERROR] Default storage engine (InnoDB) is not available
[ERROR] Aborting
核心提示:現有 ib_logfile* 大小與配置不匹配。
del data\ib_logfile0
del data\ib_logfile1
僅重啟服務不生效,必須重啟操作系統釋放文件鎖定。
InnoDB: Cannot initialize created log files because
InnoDB: data files are corrupt, or new data files were
InnoDB: created when the database was started previous
InnoDB: time but the database was not shut down normally
del data\ibdata1
del data\ib_logfile*
InnoDB: The first specified data file ...\ibdata1 did not exist: new database to be created!
InnoDB: Setting file ...\ibdata1 size to 10 MB
InnoDB: Log file .\ib_logfile0 did not exist: new to be created
...
InnoDB: Started; log sequence number 0 0
[Note] ready for connections.
ibdata1、ib_logfile* 後重啟系統.err 是診斷核心,逐行分析 LSN、文件大小不匹配信息