Bug #2092 Installation of Service on XP error
Submitted: 11 Dec 2003 3:42 Modified: 11 Dec 2003 4:06
Reporter: Daniel Schneller Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:4.0.15 OS:Windows (Windows XP)
Assigned to: CPU Architecture:Any

[11 Dec 2003 3:42] Daniel Schneller
Description:
When using the command line "mysqld-nt.exe --install MyServiceName" the entry in the "ImagePath" Registry Value under "HKLM/SYSTEM/CurrentControlSet/Services/MyServiceName" is just "mysqld-nt.exe" while it should be "mysqld-nt.exe MyServiceName". This works in Windows 2000. This will lead to the service not being startable. You will either see the process in the process manager for some time, but after a timeout the Windows service manager will terminate it again, claiming it "did not respond in a timely fashion".
Manually adding "MyServiceName" in the registry fixes it.

This is also true if you use "--install MyServiceName --defaults-file=.../myservice.cnf", but it will be even harder to find, because in the service's property dialog you will not see the end of the command line without actively moving there with the cursor keys.

I guess this will also happen on Windows Server 2003.

How to repeat:
See description.

Suggested fix:
make sure the service name is appended to the command line for the service, stored in the "ImagePath" REG_SZ value.
[11 Dec 2003 4:06] MySQL Verification Team
Thank you for the bug report. This bug was already reported and currently
fixed on BK tree, and,  it will be available in the next version 4.0.17.