Page 1 of 1

MySQL Service detected with wrong path (actually running OK)

PostPosted: 25. August 2014 12:42
by pjbeee
Server 2012 R2 Essentials (SOLVED - see below)

Getting this message from the XAMPP control panel on startup - have MySQL and Apache installed as services by running included batch files...

7:02:45 AM [mysql] MySQL Service detected with wrong path
7:02:45 AM [mysql] Change XAMPP MySQL and Control Panel settings or
7:02:45 AM [mysql] Uninstall/disable the other service manually first
7:02:45 AM [mysql] Found Path: C:\xampp\mysql\bin\mysqld --defaults-file=C:\xampp\mysql\bin\my.ini mysql
7:02:45 AM [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql

If port detection is enabled, I get this message (same thing, plus more)...

7:22:07 AM [mysql] MySQL Service detected with wrong path
7:22:07 AM [mysql] Change XAMPP MySQL and Control Panel settings or
7:22:07 AM [mysql] Uninstall/disable the other service manually first
7:22:07 AM [mysql] Found Path: C:\xampp\mysql\bin\mysqld --defaults-file=C:\xampp\mysql\bin\my.ini mysql
7:22:07 AM [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
7:22:07 AM [mysql] Problem detected!
7:22:07 AM [mysql] Port 3306 in use by "C:\xampp\mysql\bin\mysqld --defaults-file=C:\xampp\mysql\bin\my.ini mysql"!
7:22:07 AM [mysql] MySQL WILL NOT start without the configured ports free!
7:22:07 AM [mysql] You need to uninstall/disable/reconfigure the blocking application
7:22:07 AM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port

XAMPP is set to NOT Autostart Apache or MySQL.

And as stated in heading, MySQL is running just fine, and on the default port 3306. This appears to be just a syntax error between the Found and Expected paths: mysqld vs. mysqld.exe.

So far I can't see anything in any config files that allow me to edit the "Expected Path" (path expected by control panel when it starts). Comments anyone? And Thanks!

Re: MySQL Service detected with wrong path (actually running

PostPosted: 25. August 2014 12:51
by Altrea
Register the services by ticking the svc settings in your control panel will register the components with the correct expected path

SOLVED: MySQL Service detected with wrong path

PostPosted: 25. August 2014 17:48
by pjbeee
Not exactly correct but you put me on the right track: Ran regedit, went to

HKLM\SYSTEM\CurrentControSet\Services\mysql

added ".exe" to "mysqld" in the ImagePath key (to Windows it's one and the same, coz the ".exe" is implied if it's not there)

That did it.

This really is still a glitch in the way the XAMPP control panel looks for mysqld OR in the way the mysql svc is installed into Windows. As i said originally, this is just a "reporting" issue when the XAMPP control panel starts. It was running fine when the issue came up, and still is.

So many thanks!

-PB