【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,启动成功
相关推荐
朱峥嵘(朱髯)几秒前
数据库如何根据估计 NDV,以及通过分区 NDV 推导全局 NDV
数据库·算法
7ioik几秒前
RC和RR隔离级别下MVCC的差异?
数据库·sql·mysql
luoluoal2 分钟前
基于python的二维码生成算法研究和实现(源码+文档)
python·mysql·django·毕业设计·源码
高溪流4 分钟前
2.Mysql相关概念 及 数据库操作
数据库·mysql
Summer_Uncle10 分钟前
【QT学习】qt项目使用MySQL数据库
数据库·qt·学习
施嘉伟15 分钟前
Oracle 10046 Trace 硬核指南:SQL 慢在哪,从底层拉出来
数据库·sql·oracle
_ziva_29 分钟前
MAC-SQL 多智能体协作框架解析
数据库·oracle
最贪吃的虎30 分钟前
Redis其实并不是线程安全的
java·开发语言·数据库·redis·后端·缓存·lua
代码不停35 分钟前
MySQL事务
android·数据库·mysql
山峰哥36 分钟前
数据库工程与SQL调优实战:从原理到案例的深度解析
java·数据库·sql·oracle·性能优化·编辑器