2015-08-15 69 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

相关问题