我的 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
我尝试删除 ibdata1、ib_logfile0、ib_logfile1、ib_logfile101 文件,但没有成功。帮我解决这个问题。
最佳答案
我今天也遇到了同样的问题。
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
解决方案:
停止 Apache 服务,然后
复制 xampp\mysql\backup 中的所有文件,并将所有文件粘贴到 xampp\mysql\data 中。
启动 Apache
...MySQL 运行良好。
关于php - MySQL 意外关闭 xampp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55277438/