Commit 87303393 authored by monty@narttu.mysql.fi's avatar monty@narttu.mysql.fi

Fixed bug when installing mysqld as a service with 2 arguments (option + service-name)

parent 2c4a2cec
......@@ -2230,9 +2230,12 @@ int main(int argc, char **argv)
return 0;
if (Service.IsService(argv[2]))
{
/* start an optional service */
/*
mysqld was started as
mysqld --defaults-file=my_path\my.ini service-name
*/
use_opt_args=1;
opt_argc=argc;
opt_argc= 2; // Skip service-name
opt_argv=argv;
start_mode= 1;
Service.Init(argv[2], mysql_service);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment