2014-04-01 174 views
0

我安裝了MySQL Server 5.6,但不久之後我不得不安裝XAMPP。是MySQL服務無法在XAMPP上啓動

當我嘗試啓動MySQL它只是掛在...

Attempting to start MySQL app... 

在日誌中的錯誤如下...

140401 15:05:43 [Note] Plugin 'FEDERATED' is disabled. 
140401 15:05:43 InnoDB: The InnoDB memory heap is disabled 
140401 15:05:43 InnoDB: Mutexes and rw_locks use Windows interlocked functions 
140401 15:05:43 InnoDB: Compressed tables use zlib 1.2.3 
140401 15:05:43 InnoDB: Initializing buffer pool, size = 16.0M 
140401 15:05:43 InnoDB: Completed initialization of buffer pool 
InnoDB: Error: space header page consists of zero bytes in data file C:\xampp\mysql\data\ibdata1 
140401 15:05:43 InnoDB: Could not open or create data files. 
140401 15:05:43 InnoDB: If you tried to add new data files, and it failed here, 
140401 15:05:43 InnoDB: you should now edit innodb_data_file_path in my.cnf back 
140401 15:05:43 InnoDB: to what it was, and remove the new ibdata files InnoDB created 
140401 15:05:43 InnoDB: in this failed attempt. InnoDB only wrote those files full of 
140401 15:05:43 InnoDB: zeros, but did not yet use them in any way. But be careful: do not 
140401 15:05:43 InnoDB: remove old data files which contain your precious data! 
140401 15:05:43 [ERROR] Plugin 'InnoDB' init function returned error. 
140401 15:05:43 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
140401 15:05:43 [ERROR] Unknown/unsupported storage engine: InnoDB 
140401 15:05:43 [ERROR] Aborting 

140401 15:05:43 [Note] c:\xampp\mysql\bin\mysqld.exe: Shutdown complete 

我試圖停止服務的MySQL56服務,但它仍然沒有工作

我也嘗試將my.ini中的端口更改爲3307,但仍然沒有運氣

我明顯重啓了這些更改後的所有內容,但它只是停留在嘗試啓動

+0

您單獨安裝了Mysql ...然後您將XAMPP安裝在它上面? – Hackerman

+0

在我看來,像簡單的權限問題。嘗試重新安裝。 – blue

回答

0

卸載並重新安裝包含MySQL的XAMPP。很多時候,這些安裝將以管理員身份運行,如果您將其視爲其他用戶,您將無權修改它們。

您也可以嘗試右鍵點擊圖標來啓動XAMPP,然後在卸載/重新安裝前選擇「以管理員身份運行」並查看是否可以解決該問題。

+0

謝謝,有趣的是,當我以管理員身份運行時,出現一個新錯誤 - MySQL意外關閉。這可能是由於一個阻塞的端口...等「 – Adrian

+0

只是檢查,這是一個工作的計算機或家庭嗎?只是好奇,如果有安全策略超出標準的地方,如果可以,檢查哪些端口應該打開和在安裝XAMPP的過程中,這種「可能」會自動發生,但它可能不會。 – Alan

+0

它實際上是一所大學的計算機,我不認爲會有安全問題,因爲在此之前我使用的是精細的 無論如何,我按照你的指示,它已經工作,但是當我點擊管理,它告訴我......「Firefox無法建立連接到服務器在本地主機。」 – Adrian