如果出现mysql 无法启动表明在安装xampp 前已经安装了mysql,造成mysql服务无法启动。
[mysql] MySQL Service detected with wrong path
23:19:41 [mysql] Change XAMPP MySQL and Control Panel settings or
23:19:41 [mysql] Uninstall/disable the other service manually first
23:19:41 [mysql] Found Path: "C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt" --defaults-extra-file="C:/Program Files/MySQL/MySQL Server 5.0/my.ini" MySQL
23:19:41 [mysql] Expected Path: d:\xampp\mysql\bin\mysqld.exe --defaults-file=d:\xampp\mysql\bin\my.ini mysql
为了把原来的mysql服务改成自己的mysql服务区需要修改mysql的执行文件路径
打开注册表
cmd
regedit
找到
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL] 中的ImagePath 修改成你当前的mysqld的执行目录
类似:"D:\xampp\mysql\bin\mysqld"
重新启动服务器成功!
http://www.kuitao8.com/20141209/3326.shtml
https://bitnami.com/stack/xampp