【问题标题】:How to run MySql in xampp server?如何在 xampp 服务器中运行 MySql?
【发布时间】:2015-11-08 15:26:51
【问题描述】:

如何解决这个问题?

我想用 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

【问题讨论】:

  • 你按照消息告诉你的做了吗? Press the Logs button to view error logs and check 17:45:11 [mysql] the Windows Event Viewer for more clues

标签: php mysql xampp server


【解决方案1】:

你可以尝试几件事-

尝试运行 mysql 控制台,看看 mysql 是否工作正常。如果是这样,请尝试将其连接到 php 并执行您的代码

以管理员身份运行xampp,然后尝试运行mysql

【讨论】:

    【解决方案2】:

    也许你应该检查一下你的MySQL端口没有被占用,比如3306

    【讨论】:

      猜你喜欢
      • 2018-06-06
      • 2010-11-23
      • 2015-10-16
      • 2010-11-29
      • 2014-07-30
      • 1970-01-01
      • 2013-05-19
      • 1970-01-01
      • 2018-05-21
      相关资源
      最近更新 更多