Commit 33959dc1 authored by unknown's avatar unknown
Browse files

fix for bug #7285: Disable start of embedded server when need to

connect to an external server with mysqld.


libmysql/libmysql.c:
  fix for bug #7285: Disable start of embedded server when need to
  connect to an external server with libmysqld.
  
  Calling mysql_server_init with a negative value for argc will not
  start the embedded server.
parent 83fce55a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)),
    (void) signal(SIGPIPE, SIG_IGN);
#endif
#ifdef EMBEDDED_LIBRARY
    if (argc > -1)
       result= init_embedded_server(argc, argv, groups);
#endif
  }