Page 1 of 1

Bad script to install MySQL as Windows service - XAMPP 1.6.0

PostPosted: 18. February 2007 23:38
by carib
In the Installer for XAMPP Windows 1.6.0 [Basic package] I found an error in the install as service script "mysql_installservice" which prevents it from being installed as a windows service.

The section

:MainNT
echo Installing MySQL as an Service
copy "%cd%\bin\my.cnf" /-y %windir%\my.ini
bin\mysqld-nt --install mysql --defaults-file="%cd%\bin\my.cnf"
echo Try to start the MySQL deamon as service ...
net start MySQL

should instead read

:MainNT
echo Installing MySQL as an Service
copy "%cd%\bin\my.cnf" /-y %windir%\my.ini
bin\mysqld --install mysql --defaults-file="%cd%\bin\my.cnf"
echo Try to start the MySQL deamon as service ...
net start MySQL

that is remove "-nt" on line 32 of the code.

PostPosted: 19. February 2007 00:07
by Wiedmann
For now you are correct.

But the real bug is:
They have forgotten to put the file "mysqld-nt.exe" into the new XAMPP download packages (1.6.0).

PostPosted: 19. February 2007 01:14
by carib
Ah yes. I see it because "mysqld-nt.exe" is also referenced in the uninstall script.

Just another side note. A few pages in the package refer to the previous version of xampp in the page title.

All in all I love the work done by the apachefriends project. It's been a life save as I go from BSD to windows in developing my work. Keep up the good work and keep the improvements coming!!!.


Wiedmann wrote:For now you are correct.

But the real bug is:
They have forgotten to put the file "mysqld-nt.exe" into the new XAMPP download packages (1.6.0).