【XAMPP】启动数据库Error: MySQL shutdown unexpectedly.

问题:

启动MySQL时报错如下:

Error: MySQL shutdown unexpectedly.

This may be due to a blocked port, missing dependencies,

improper privileges, a crash, or a shutdown by another method.

Press the Logs button to view error logs and check

the Windows Event Viewer for more clues

If you need more help, copy and post this

entire log window on the forums

解决方法:

  1. 打开注册表编辑器
  2. 导航到:计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL
  3. 双击 ImagePath ,将数值数据修改为xampp下mysql下bin下文件的地址,例如:d:\xampp\mysql\bin\mysqld.exe --defaults-file=d:\xampp\mysql\bin\my.ini mysql


  1. 设置完毕后,点击Start,启动成功
相关推荐
代码配咖啡5 分钟前
《Navicat之外的新选择:实测支持国产数据库的SQLynx核心功能解析》
数据库
懒大王爱吃狼28 分钟前
怎么使用python进行PostgreSQL 数据库连接?
数据库·python·postgresql
时序数据说28 分钟前
IoTDB集群的一键启停功能详解
大数据·数据库·开源·时序数据库·iotdb
小叶子来了啊1 小时前
信息系统运行管理员:临阵磨枪版
运维·服务器·数据库
数据库幼崽1 小时前
MySQL 8.0 OCP 1Z0-908 131-140题
数据库·mysql·ocp
北漂老男孩2 小时前
主流数据库运维故障排查卡片式速查表与视觉图谱
运维·数据库
源码云商2 小时前
基于SpringBoot的校园周边美食探索及分享平台【附源码+数据库+文档下载】
数据库·spring boot·美食
爱编程的小新☆2 小时前
【MySQL】数据库三大范式
数据库·mysql
随心............2 小时前
MySQL的触发器
数据库·mysql
GUIQU.3 小时前
【MySQL】项目实践
数据库·mysql·项目实践