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,