MySQL Service detected with wrong path (actually running OK)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

MySQL Service detected with wrong path (actually running OK)

Postby pjbeee » 25. August 2014 12:42

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!
Last edited by pjbeee on 25. August 2014 17:51, edited 1 time in total.
pjbeee
 
Posts: 5
Joined: 22. August 2014 23:28
Operating System: Server 2012

Re: MySQL Service detected with wrong path (actually running

Postby Altrea » 25. August 2014 12:51

Register the services by ticking the svc settings in your control panel will register the components with the correct expected path
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

SOLVED: MySQL Service detected with wrong path

Postby pjbeee » 25. August 2014 17:48

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
pjbeee
 
Posts: 5
Joined: 22. August 2014 23:28
Operating System: Server 2012


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 50 guests