2012-03-19 109 views
1

我試圖通過更改my.ini文件中的datadir參數來更改MySQL的數據文件夾路徑。但是當我再次重新啓動MySQL服務時,出現以下錯誤:更改MySQL數據庫的數據文件夾

錯誤1067:進程意外終止。

我檢查了.ERR文件,下面的錯誤存在:(他們都對InnoDB的)

120319 3:59:59 [Note] Plugin 'FEDERATED' is disabled. 
120319 3:59:59 InnoDB: The InnoDB memory heap is disabled 
120319 3:59:59 InnoDB: Mutexes and rw_locks use Windows interlocked functions 
120319 3:59:59 InnoDB: Compressed tables use zlib 1.2.3 
120319 3:59:59 InnoDB: Initializing buffer pool, size = 75.0M 
120319 3:59:59 InnoDB: Completed initialization of buffer pool 
InnoDB: Error: log file .\ib_logfile0 is of different size 0 99614720 bytes 
InnoDB: than specified in the .cnf file 0 39845888 bytes! 
120319 3:59:59 [ERROR] Plugin 'InnoDB' init function returned error. 
120319 3:59:59 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
120319 3:59:59 [ERROR] Unknown/unsupported storage engine: INNODB 
120319 3:59:59 [ERROR] Aborting 

回答

1

你必須指定合適的大小:在你我的 innodb_log_file_size = 95M。 cnf或my.ini。目前我猜是指定爲38M。

另請檢查您的數據文件夾中您有多少個ib_logfiles。如果超過2個,則還要指定:innodb_log_files_in_group = 2。

+0

這也幫助了我,謝謝!!! – 2012-05-21 14:03:24