【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,启动成功
相关推荐
cui_ruicheng2 小时前
MySQL(四):数据类型与字段设计
数据库·mysql
皮皮学姐分享-ppx2 小时前
政府绿色采购数据库(2015-2024.3)
大数据·网络·数据库·人工智能·制造
闪电悠米4 小时前
黑马点评-Redis 消息队列-03_stream_consumer_group
开发语言·数据库·redis·分布式·缓存·junit·lua
DIY源码阁5 小时前
JavaSwing航班订票管理系统 - MySQL版
数据库·mysql
浪客灿心6 小时前
项目篇:模块设计与实现
数据库·c++
流星白龙7 小时前
【MySQL高阶】26.事务(1)
数据库·mysql
三十..8 小时前
Redis 核心原理与高可用架构实践
运维·数据库·redis
这个DBA有点耶8 小时前
索引优化深潜(下):索引合并、ICP 与索引设计的实战法则
数据库·mysql·架构
用户3074596982078 小时前
EXPLAIN 执行计划 完全精通指南
mysql
努力努力再努力wz8 小时前
【内存管理与高并发内存池系列】从 mmap 到 malloc:文件映射、匿名映射与 glibc 内存分配机制详解
linux·c语言·数据结构·数据库·c++·qt·链表