2013-03-19 199 views
1

所以我試圖使用我製作的這個登錄系統,它開始給我奇怪的錯誤。我發現這是因爲MySQL沒有啓動。所以我試圖啓動它,但它不會。下面是日誌:無法在XAMPP中啓動MySQL?

10:06:12 PM [mysql] Attempting to start MySQL app... 
10:06:12 PM [mysql] Status change detected: running 
10:06:13 PM [mysql] Status change detected: stopped 
10:06:13 PM [mysql] Error: MySQL shutdown unexpectedly. 
10:06:13 PM [mysql] This may be due to a blocked port, missing dependencies, 
10:06:13 PM [mysql] improper privileges, a crash, or a shutdown by another method 
10:06:13 PM [mysql] Check the "/xampp/mysql/data/mysql_error.log" file 
10:06:13 PM [mysql] and the Windows Event Viewer for more clues 

這裏是一些比較顯着的線在錯誤日誌(mysql_error.log):

130318 22:06:12 InnoDB: Database was not shut down normally! 
130318 22:06:12 InnoDB: Waiting for the background threads to start 
130318 22:06:13 InnoDB: 1.1.8 started; log sequence number 1599518 
130318 22:06:13 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 
130318 22:06:13 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 
130318 22:06:13 [Note] Server socket created on IP: '0.0.0.0'. 
130318 22:06:13 [ERROR] Fatal error: Can't open and lock privilege tables: Can't 
         find file: 'host' (errno: 2) 

可這些錯誤被固定而無需重新安裝XAMPP?

+1

可能是其他一些服務可能使用mysql端口 – 2013-03-19 03:38:46

+0

從Skype退出。 – 2013-03-19 03:40:26

+0

沒有安裝skype – 2013-03-19 03:46:38

回答

1

我剛剛重新安裝它並保留htdocs文件夾。

3

停止計算機中的另一臺Mysql服務器。您可以顯示它打開TaskManager 停止或刪除另一臺服務器並重新啓動xammp

+0

如何「停止或刪除其他服務器並重新啓動xammp」。我停止了「taskhost.exe」的事情。是嗎?我也嘗試重新啓動我的電腦,因爲這會清除過程',對吧?仍然不起作用。 – 2013-03-19 03:33:15

+0

檢查名爲「mysql」的服務。檢查是否開始?並檢查它的路徑..是從你的xampp的MySQL? – 2013-03-19 03:35:57

+0

Theres沒有什麼叫「mysql」的服務,是的。 – 2013-03-19 03:41:48

1

我得到了同樣的錯誤,但檢查服務顯示一個MySQL服務運行,所以我停下來,現在它的工作。我通過以管理員身份運行的XAMPP控制面板並從那裏獲取服務。

2

在管理員模式下打開XAMPP控制面板並卸載MySQL服務,然後再次重新安裝它爲我工作。爲此,請選中並取消選中提供的快照中的圈選複選框。這裏是圖片... How to install & unstall the MySQL service