qq_46539615
黑心胡萝卜
采纳率100%
2020-10-27 22:53 浏览 71
已采纳

xampp的MySQL服务启动不了,apache可以运行,这是错误日志,该怎么启动?

Autostart active: starting...
22:42:45  [mysql]   Attempting to start MySQL app...
22:42:46  [mysql]   Status change detected: running
22:42:46  [mysql]   Status change detected: stopped
22:42:46  [mysql]   Error: MySQL shutdown unexpectedly.
22:42:46  [mysql]   This may be due to a blocked port, missing dependencies, 
22:42:46  [mysql]   improper privileges, a crash, or a shutdown by another method.
22:42:46  [mysql]   Press the Logs button to view error logs and check
22:42:46  [mysql]   the Windows Event Viewer for more clues
22:42:46  [mysql]   If you need more help, copy and post this
22:42:46  [mysql]   entire log window on the forums
22:49:47  [mysql]   Attempting to start MySQL app...
22:49:47  [mysql]   Status change detected: running
22:49:48  [mysql]   Status change detected: stopped
22:49:48  [mysql]   Error: MySQL shutdown unexpectedly.
22:49:48  [mysql]   This may be due to a blocked port, missing dependencies, 
22:49:48  [mysql]   improper privileges, a crash, or a shutdown by another method.
22:49:48  [mysql]   Press the Logs button to view error logs and check
22:49:48  [mysql]   the Windows Event Viewer for more clues
22:49:48  [mysql]   If you need more help, copy and post this
22:49:48  [mysql]   entire log window on the forums

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答 默认 最新

  • 已采纳
    AlanGrady AlanGrady 2020-10-29 21:03

    3306端口被占用了,解决办法2种:
    1、点击xamp右侧绿色小地球查看占用3306端口的程序,记下pid,打开任务管理器,找到对应pid的程序右键干掉
    2、修改mysql的默认端口

    点赞 评论 复制链接分享

相关推荐