【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,启动成功
相关推荐
小猿姐1 小时前
# KubeBlocks for MSSQL 高可用实现
数据库·架构·sql server
码农阿豪7 小时前
行标识符的抉择:深入理解数据库领域的OID与ROWID机制
数据库·oracle
不剪发的Tony老师7 小时前
MyCLI:一个增强型MySQL命令行客户端
数据库·mysql
SHANGHAILINGEN7 小时前
2400 万个未培养病毒重新定义病毒多样性
数据库·测序·组学
刘晨鑫17 小时前
PostgreSQL日常维护
数据库·postgresql
xiaokangzhe7 小时前
PG数据库日常应用
数据库·oracle
XDHCOM8 小时前
MySQL ER_DD_VERSION_INSTALLED报错解析,数据字典版本问题,故障修复与远程处理指南
数据库·mysql
努力的小郑8 小时前
Canal 不难,难的是用好:从接入到治理
后端·mysql·性能优化
yaoyouzhong9 小时前
MySQL 批量插入详解:快速提升大数据导入效率的实战方法
大数据·数据库·mysql
东北甜妹10 小时前
MySQL主从复制
mysql