19:06:33 [mysql] MySQL Service detected with wrong path
19:06:33 [mysql] Change XAMPP MySQL and Control Panel settings or
19:06:33 [mysql] Uninstall/disable the other service manually first
19:06:33 [mysql] Found Path: "C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files (x86)\MySQL\MySQL Server 5.1\my.ini" MySQL
19:06:33 [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"
重新启动服务器成功!