1 message in com.mysql.lists.win32Re: mysqd service with parameters
FromSent OnAttachments
Gilles Levreau23 Dec 2002 13:53 
Subject:Re: mysqd service with parameters
From:Gilles Levreau (gil@softbase.com)
Date:12/23/2002 01:53:47 PM
List:com.mysql.lists.win32

Hi,

I tried installing mysql 3.23.54 as a service with parameters, using the command syntax:

mysqld-nt --install mysqldopt --defaults-file=c:\test\my.ini

It installed fine, but starting the service returned an error (the dreaded 'System error 1067'). I tried with mysql 4.0.6 gamma and got the same error.

This feature is not very documented, so I am wondering if I am using it the right way. Has anybody been successful using it ?

I managed to make it work by very slightly changing the source code. I changed line 2223 of sql/mysqld.cpp from: opt_argc=argc; to opt_argc=argc-1; // -1: service name is no longer useful

and now it works fine. The question is, is that a bug fix or a workaround for a misuse of the command ?

thanks,