MySQL 意外关闭 xampp

3 php mysql xampp port phpmyadmin

我的 apache 运行正常,但 mysql 服务器显示此错误

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

我尝试删除 ibdata1、ib_logfile0、ib_logfile1、ib_logfile101 文件,但没有成功。帮我解决这个问题。

小智 5

我今天也遇到了同样的问题。

Error: MySQL shutdown unexpectedly.
7:56:51 PM  [mysql]     This may be due to a blocked port, missing dependencies, 
7:56:51 PM  [mysql]     improper privileges, a crash, or a shutdown by another method.
7:56:52 PM  [mysql]     Press the Logs button to view error logs and check
7:56:52 PM  [mysql]     the Windows Event Viewer for more clues
7:56:52 PM  [mysql]     If you need more help, copy and post this
7:56:52 PM  [mysql]     entire log window on the forums
Run Code Online (Sandbox Code Playgroud)

解决方案:

  1. 停止 Apache 服务,然后

  2. 复制 xampp\mysql\backup 中的所有文件,并将所有文件粘贴到 xampp\mysql\data 中。

  3. 启动阿帕奇

...MySQL 运行完美。