2013-10-06 122 views
3

我無法通過XAMPP啓動MySQL,上次在幾個月前打開它時沒有問題;MySQL沒有在XAMPP上啓動

更新錯誤,我也跟着my.cnf中恢復後:

2013-10-06 19:29:23 7920 [Note] Plugin 'FEDERATED' is disabled. 
2013-10-06 19:29:23 15fc InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 
2013-10-06 19:29:23 7920 [Note] InnoDB: The InnoDB memory heap is disabled 
2013-10-06 19:29:23 7920 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2013-10-06 19:29:23 7920 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2013-10-06 19:29:23 7920 [Note] InnoDB: Not using CPU crc32 instructions 
2013-10-06 19:29:23 7920 [Note] InnoDB: Initializing buffer pool, size = 16.0M 
2013-10-06 19:29:23 7920 [Note] InnoDB: Completed initialization of buffer pool 
2013-10-06 19:29:23 7920 [Note] InnoDB: Highest supported file format is Barracuda. 
2013-10-06 19:29:23 7920 [Note] InnoDB: The log sequence numbers 0 and 0 in ibdata files do not match the log sequence number 198755718 in the ib_logfiles! 
2013-10-06 19:29:23 7920 [Note] InnoDB: Database was not shutdown normally! 
2013-10-06 19:29:23 7920 [Note] InnoDB: Starting crash recovery. 
2013-10-06 19:29:23 7920 [Note] InnoDB: Reading tablespace information from the .ibd files... 
2013-10-06 19:29:23 7920 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace bitnami_wordpress/wp_usermeta uses space ID: 2 at filepath: .\bitnami_wordpress\wp_usermeta.ibd. Cannot open tablespace mysql/innodb_index_stats which uses space ID: 2 at filepath: .\mysql\innodb_index_stats.ibd 
InnoDB: Error: could not open single-table tablespace file .\mysql\innodb_index_stats.ibd 
InnoDB: We do not continue the crash recovery, because the table may become 
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it. 
InnoDB: To fix the problem and start mysqld: 
InnoDB: 1) If there is a permission problem in the file and mysqld cannot 
InnoDB: open the file, you should modify the permissions. 
InnoDB: 2) If the table is not needed, or you can restore it from a backup, 
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal 
InnoDB: crash recovery and ignore that table. 
InnoDB: 3) If the file system or the disk is broken, and you cannot remove 
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf 
InnoDB: and force InnoDB to continue crash recovery here. 
+0

已經有關於如何在錯誤報告中修復它的建議。你有嘗試過嗎? –

+0

@DoanCuong我不會說謊,我只是一個設計師,所以這些技術性的東西大部分都是中文的,我甚至不知道從哪裏開始! –

回答

3

基礎上的錯誤日誌的建議,我想你應該試試這個。我計劃在評論中寫這個,但這很難讓你閱讀,所以我將它作爲一個回答,而不是

你不能啓動MySQL,因爲XAMPP無法打開文件.\mysql\innodb_index_stats.ibd,如

Error: could not open single-table tablespace file .\mysql\innodb_index_stats.ibd 

這裏是建議如何解決它:

1) If there is a permission problem in the file and mysqld cannot 
open the file, you should modify the permissions. 

(1)關於許可。轉到.\mysql\innodb_index_stats.ibd並檢查是否有權限讀取innodb_index_stats.ibd

2) If the table is not needed, or you can restore it from a backup, 
then you can remove the .ibd file, and InnoDB will do a normal 
crash recovery and ignore that table. 

(2)你可以嘗試刪除.\mysql\innodb_index_stats.ibd。我的建議是複製innodb_index_stats.ibd到另一個位置,以防萬一別的發生

3) If the file system or the disk is broken, and you cannot remove 
the .ibd file, you can set innodb_force_recovery > 0 in my.cnf 
and force InnoDB to continue crash recovery here. 

(3)如果你不能刪除nnodb_index_stats.ibd,你可以嘗試修改my.cnf文件,並設置innodb_force_recovery > 0(你可以用記事本或者記事本++編輯該文件。它定位xampp\mysql\

嘗試這些先來看看它是否有助於你

UPDATE 請嘗試查找文件ibdata1 LOCA TE在xampp\mysql\data和刪除或重新命名它,然後重新啓動XAMPP,希望這會工作,你

+0

我遇到的問題是我無法在我的系統上找到innodb_index_stats.ibd,我嘗試過搜索該文件,但它似乎並不存在? –

+0

奇怪的是,它應該位於'xampp \ mysql \ data'中,你檢查了那個位置嗎? –

+0

啊,是的,它在那裏,我試圖重命名文件和複製備份,沒有工作......我無法在xampp/mysql中找到my.cnf? –

0

Hi dear go to this link plz :)

嘿,我只是做這個和它的工作:

退出XAMPP服務器 去你的C :\ XAMPP \ mysql的\ data目錄 刪除ibdata1中文件 重啓XAMPP服務器 它應該工作

2

我解決了同樣的問題,通過刪除所有的ib_logfile的s發現於〜/ x-ampp/mysql/data