XAMPP 的MYSQL没法启动

 最近在学习小程序,小程序的后台cms系统须要安装XAMPP软件,这个软件是个集成软件,里面有MySql 和 Apache 等 ,首先进入小程序后台时须要启动MySql 和 Apache mysql

Apache 直接就启动了 MySql 却一直启动不了  开始的时候是由于我以前安装过MySql ,因此路径是不对的 ,解决这个问题最简便的方式就是把以前的卸载了,再安装XAMPP,sql

第二种方式就是 更改路径:小程序

打开注册表服务器

cmd app

regeditpost

找到学习

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL] 中的ImagePath 修改为你当前的mysqld的执行目录this

相似:"D:\xampp\mysql\bin\mysqld"ci

从新启动服务器成功!cmd

更改以后重启仍是没有成功  , MySql 重启几秒又关闭了,仍是不成功呢 报错信息

22:59:43  [mysql]     Attempting to start MySQL app...
22:59:43  [mysql]     Status change detected: running
22:59:44  [mysql]     Status change detected: stopped
22:59:44  [mysql]     Error: MySQL shutdown unexpectedly.
22:59:44  [mysql]     This may be due to a blocked port, missing dependencies, 
22:59:44  [mysql]     improper privileges, a crash, or a shutdown by another method.
22:59:44  [mysql]     Press the Logs button to view error logs and check
22:59:44  [mysql]     the Windows Event Viewer for more clues
22:59:44  [mysql]     If you need more help, copy and post this
22:59:44  [mysql]     entire log window on the forums

又经过各类查找 解决方法前提是先把Apache中止运行,第一步先在mysql文件里面找到mysql_installservice.bat和mysql_uninstallservice.bat 两个文件,先双击mysql_installservice.bat,而后关闭,再双击mysql_uninstallservice.bat 关闭,第二步把mysql>data>ibdata一、ib_logfile一、ib_logfile0  这几个文件都删除掉 ,而后重启xampp,就能够成功运行了。

相关文章
相关标签/搜索