Commit cd554e9e authored by unknown's avatar unknown

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

parent 8ec9bd59
...@@ -2230,9 +2230,12 @@ int main(int argc, char **argv) ...@@ -2230,9 +2230,12 @@ int main(int argc, char **argv)
return 0; return 0;
if (Service.IsService(argv[2])) 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; use_opt_args=1;
opt_argc=argc; opt_argc= 2; // Skip service-name
opt_argv=argv; opt_argv=argv;
start_mode= 1; start_mode= 1;
Service.Init(argv[2], mysql_service); 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