2015-08-15 71 views
-1

如何解決這個問題?如何在xampp服務器上運行MySql?

我想用php代碼連接mysql服務器。但我嘗試運行mysql數據庫服務,我看到這個錯誤。

17:45:11 [mysql] Status change detected: stopped 17:45:11 [mysql] 
Error: MySQL shutdown unexpectedly. 17:45:11 [mysql] This may be 
due to a blocked port, missing dependencies, 17:45:11 [mysql] 
improper privileges, a crash, or a shutdown by another method. 

17:45:11 [mysql] Press the Logs button to view error logs and check 

17:45:11 [mysql] the Windows Event Viewer for more clues 17:45:11 
[mysql] If you need more help, copy and post this 17:45:11 [mysql] 
entire log window on the forums 
+0

你做過的消息告訴你的? '按Logs按鈕查看錯誤日誌並檢查17:45:11 [mysql] Windows事件查看器以獲取更多線索' – VolkerK

回答

0

也許你應該檢查你的MySQL端口沒有被佔用,如3306

0

你可以嘗試一些東西 -

試運行MySQL控制檯,看看如果MySQL是工作的罰款或不。如果是這樣,請嘗試連接它PHP和執行代碼

運行XAMPP作爲管理員聯絡,然後嘗試運行MySQL

相關問題