【问题标题】:Xampp mysql error when connecting连接时Xampp mysql错误
【发布时间】:2018-11-02 09:41:23
【问题描述】:

我有这个问题: 我尝试从 xampp 启动 mySql,但我得到了

   14:45:16  [mysql]    Error: MySQL shutdown unexpectedly.
   14:45:16  [mysql]    This may be due to a blocked port, missing 
                        dependencies, 
   14:45:16  [mysql]    improper privileges, a crash, or a shutdown by 
                        another method.
   14:45:16  [mysql]    Press the Logs button to view error logs and check
   14:45:16  [mysql]    the Windows Event Viewer for more clues
   14:45:16  [mysql]    If you need more help, copy and post this
   14:45:16  [mysql]    entire log window on the forums

我一直在寻找答案 4 个小时,但我找不到。有人可以告诉我如何解决这个问题吗?我已经尝试去 /xampp/mysql/data 并删除 ibdata。并且还尝试将端口从 80 更改为 8080

【问题讨论】:

  • MySQL 默认在3306 端口上运行。检查谁在使用该端口。检查stackoverflow.com/a/6136471/2845389
  • 如果我尝试这个,我得到这个错误:请求的操作需要提升。
  • FIXED 这是另一个使用 3306 端口的 mysql 进程。一旦我停止它并再次运行 mysql,它就可以工作了

标签: mysql server xampp


【解决方案1】:

确保不使用 80 和 8080,并将进程设置为以 sudo 运行。

【讨论】:

    猜你喜欢
    • 2014-10-24
    • 2023-01-15
    • 2016-01-18
    • 2014-03-05
    • 1970-01-01
    • 2012-12-04
    • 1970-01-01
    • 2017-11-27
    • 2017-06-25
    相关资源
    最近更新 更多