php - MySQL 意外关闭 xampp

标签 php mysql phpmyadmin xampp port

我的 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

解决方案:

  1. 停止 Apache 服务,然后

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

  3. 启动 Apache

...MySQL 运行良好。

关于php - MySQL 意外关闭 xampp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55277438/

相关文章:

从数据库中的十六进制值创建 PHP 图像

mysql - 在 phpMyAdmin 中跨多个语句执行事务

PHPMyAdmin 内联编辑文本字段中损坏的序列化数据

php - 无法打开 phpMyAdmin (Windows)

mysql - 如何获取MySQL子查询GROUP BY结果的行号?

php - "Request date header too old"将大量文件上传到 blob 存储时发生错误

php - 如果不是来自给定的居住国家/地区,如何拒绝 Paypal 付款?

javascript - 运费计算器不工作

mysql - 如何将rowid添加到具有增量但按另一列分组的表中?

php - 无法修复错误 "failed to open stream: HTTP wrapper does not support writeable connections"