2014-12-29 35 views
-4

我嘗試打開本地主機,但是當我在XAMPP的控制面板做服務停機並顯示錯誤:當試圖打開本地主機時,它轉到錯誤頁面。 (XAMPP)

11:18:37 [mysql] Error: MySQL shutdown unexpectedly.

11:18:37 [mysql] This may be due to a blocked port, missing dependencies,

11:18:37 [mysql] improper privileges, a crash, or a shutdown by another method.

11:18:37 [mysql] Press the Logs button to view error logs and check

11:18:37 [mysql] the Windows Event Viewer for more clues

11:18:37 [mysql] If you need more help, copy and post this

11:18:37 [mysql] entire log window on the forums

然後我嘗試再次啓動它,它說,這是工作,但是,當我刷新本地主機上的錯誤頁面時,SQL停止再次工作。如果有任何幫助,我已將Skype上的端口更改爲不同於80的端口。

+0

不,它再次關閉和停止本地主機。 – TheMetalMonster

+0

有時候我可以到達本地主機的可視化頁面,但所有應該在其中工作的東西都不會。無法訪問表,數據庫等。當我看到localhost時,MySQL會從xampp關閉並打印相同的錯誤。 – TheMetalMonster

回答

1

你有兩種方式來做到這一點。

1)如果您正在使用它,請退出您的Skype

驗證Skype正在使用的端口號。如果它與Mysql端口相同,則從其配置文件更改Mysql端口號。

要改變它遵循的步驟:

1. Stop the xampp server, if it is already running. 
2. Go to folder "C:\xampp\apache\conf". (By default apache is installed in C folder) 
3. Open the file httpd.conf. 
4. Search the string "Listen" in the file. 
5. Replace port number 80 to any other unused port number. 
6. Search for "ServerName" in the file. 
7. Replace port number 80 to any other unused port number in the ServerName. 
8. Save the httpd.conf. 
9. Start the xampp server. 
+0

我到達localhost頁面,有很多的耐心,但MySQL再次停止工作。 – TheMetalMonster

相關問題