【问题标题】:Error: MySQL shutdown unexpectedly错误:MySQL 意外关闭
【发布时间】:2023-03-16 23:46:02
【问题描述】:

在 XAMPP 控制面板中启动 mysql 时出现以下错误

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

我一直遇到 mysql 无法启动的问题,所以我重新安装了 XAMPP。 MYsql 然后工作,但今天再次启动时出现上述错误。我在谷歌上搜索了一个解决方案,我还删除了以下目录 C:\xampp2\mysql\data 中的这个文件 ibdata1 但 Mysql 可能没有启动。我查看了日志文件,我收到以下错误

2014-02-20 14:35:16 6528 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

另外,这一切都是在我使用 grails 和 hibernate 配置 Mysql 之后开始的,所以我想这可能是我无法在 Xampp 中启动 MySQL 的问题吗?

【问题讨论】:

  • 之前是否运行过 - 您需要保留任何数据吗?
  • 我之前遇到了同样的错误,然后我重新安装了 XAMPP,它确实工作了一段时间,然后我今天尝试启动 mysql,但它正在关闭。不,因为我没有任何重要数据要保存。

标签: mysql sql xampp


【解决方案1】:

打开任务管理器并停止mysql,然后在xampp中启动mysql就完成了。

【讨论】:

    【解决方案2】:

    您可能会花费很长时间来找出问题所在 - 安装在顶部可能会产生与解决问题一样多的问题。

    我建议您进行全新安装,因为您无需担心数据。

    1. 卸载 XAMPP
    2. 删除/移动目录 C:\xampp2\
    3. 重启
    4. 安装 XAMPP

    测试

    【讨论】:

      猜你喜欢
      • 2018-04-24
      • 2021-01-04
      • 2017-10-01
      • 2018-03-29
      • 2013-02-16
      • 2019-01-25
      • 1970-01-01
      • 2021-03-18
      • 2015-08-11
      相关资源
      最近更新 更多