Error after adding MySQL service

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

Error after adding MySQL service

Postby ggrippi » 12. April 2018 10:11

Hello,

I'm getting an error after installing MySQL as a service on my Win7 boxes. The XAMPP Control Panel (v3.2.2) shows in its log window the following lines :

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


This is not somethiong new and can be solved by modifying the file mysql_installservice.bat as follow :

@ line #31 change :
Code: Select all
bin\mysqld --install mysql --defaults-file="%cd%\bin\my.ini"

to
Code: Select all
bin\mysqld.exe --install mysql --defaults-file="%cd%\bin\my.ini"


by simply adding a ".exe" to mysqld

Note that you will need to uninstall the service first

Can this change be added to future releases please?

Thanks in advance,

GGR.
ggrippi
 
Posts: 1
Joined: 12. April 2018 10:01
XAMPP version: 3.2.2
Operating System: Win 7 Pro 64bits

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 74 guests