Page 1 of 1

Start MySQL without window???

PostPosted: 14. October 2005 18:47
by gev
Hi friends, (sorry for my english) i have 1 Q, inside of "mysql_start.bat " is this "mysql\bin\mysqld --defaults-file=mysql\bin\my.cnf --standalone" , but if i start mysql then i see a cmd window, so my question is how can i start mysql without a cmd window ??? so that nobody can see that somthing is starten???
Can some1 help me plz. thanks

PostPosted: 14. October 2005 19:59
by Wiedmann
Pease read the readme and search for "service".

PostPosted: 14. October 2005 20:49
by gev
I have read the readme. I dont wonna use services i would like to start mysql like Xampp-controll do(you clcik button start and its starts without cmd dos box), thats what i wontit to do!

PostPosted: 14. October 2005 21:09
by Wiedmann
I dont wonna use services

Why?

i would like to start mysql like Xampp-controll do(you clcik button start and its starts without cmd dos box),

Where's the different?
a) you must run the XAMPP controll to start MySQL
b) you must run a batchfile to start MySQL

In both situations you must start an other program, which you can see, first.

BTW:
I think, without "--standalone" and/or "--console" there is no open window left.

PostPosted: 14. October 2005 21:19
by gev
way i don't wonna services? becouse i don't know how to control services from Delphi, and/or how to control them.

Where's the different?
a) you must run the XAMPP controll to start MySQL
b) you must run a batchfile to start MySQL


no i am developing an application and i wonna start mysql within this app. and when i close app. then i wonna stop server, so i can execute mysql-start.bat in application. I just tried this "mysql\bin\mysqld --defaults-file=mysql\bin\my.cnf "(without --standalone) but stil i see dosbox???? and i know is posible tho start without dosbox couse xampp-control does.

PostPosted: 14. October 2005 21:46
by Wiedmann
becouse i don't know how to control services from Delphi,

no i am developing an application ... so i can execute mysql-start.bat in application.

Then you should read a Delphi manual?

BTW:
"xampp-control.exe" uses the C++ "_spanwn" / "CreateProcess"-function
and "xampp_start.exe" uses the C++ "WinExec"-function

to start the server binary directly.

PostPosted: 14. October 2005 21:49
by gev
Hmmm can i find somwhere the source of C++ "_spanwn" / "CreateProcess"-function ?? or explanetion what it dose or how??

PostPosted: 14. October 2005 22:22
by Wiedmann