Description:
The optional service installed with:
mysqld --install-manual mysqldopt --defaults-file=c:\path\my.ini
doesn't start adequately due to use 3 parameters in argc.
How to repeat:
install the optional service with:
mysqld --install-manual mysqldopt --defaults-file=d:\custom_path\my.ini
start the server with:
net start mysqldopt
and the service fails to start.
Suggested fix:
*** d:\mysql-dev\mysql\sql\mysqld.cc Thu Apr 17 18:09:34 2003
--- c:\fix\mysqld.cc Fri Apr 25 23:53:34 2003
***************
*** 2223,2231 ****
return 0;
if (Service.IsService(argv[2]))
{
! /* start an optional service */
use_opt_args=1;
! opt_argc=argc;
opt_argv=argv;
start_mode= 1;
Service.Init(argv[2], mysql_service);
--- 2223,2231 ----
return 0;
if (Service.IsService(argv[2]))
{
! /* start an optional service with --defaults-file=my_path\my.ini */
use_opt_args=1;
! opt_argc=2; /* for to exclude the service name */
opt_argv=argv;
start_mode= 1;
Service.Init(argv[2], mysql_service);
Description: The optional service installed with: mysqld --install-manual mysqldopt --defaults-file=c:\path\my.ini doesn't start adequately due to use 3 parameters in argc. How to repeat: install the optional service with: mysqld --install-manual mysqldopt --defaults-file=d:\custom_path\my.ini start the server with: net start mysqldopt and the service fails to start. Suggested fix: *** d:\mysql-dev\mysql\sql\mysqld.cc Thu Apr 17 18:09:34 2003 --- c:\fix\mysqld.cc Fri Apr 25 23:53:34 2003 *************** *** 2223,2231 **** return 0; if (Service.IsService(argv[2])) { ! /* start an optional service */ use_opt_args=1; ! opt_argc=argc; opt_argv=argv; start_mode= 1; Service.Init(argv[2], mysql_service); --- 2223,2231 ---- return 0; if (Service.IsService(argv[2])) { ! /* start an optional service with --defaults-file=my_path\my.ini */ use_opt_args=1; ! opt_argc=2; /* for to exclude the service name */ opt_argv=argv; start_mode= 1; Service.Init(argv[2], mysql_service);