Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误:MySQL意外关闭_Mysql_Sql_Xampp - Fatal编程技术网

错误:MySQL意外关闭

错误:MySQL意外关闭,mysql,sql,xampp,Mysql,Sql,Xampp,在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

在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
2014-02-20 14:35:16 6528 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
由于mysql没有启动,我一直存在这个问题,所以我重新安装了XAMPP。MYsql然后工作,但今天当我再次开始时,我得到了上面的错误。我在谷歌搜索了一个解决方案,我还删除了以下目录C:\xampp2\mysql\data中的这个文件ibdata1,但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
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
  • 删除/移动目录C:\xampp2\
  • 重新启动
  • Instal XAMPP

  • 测试

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

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