Start MySQL without window???

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Start MySQL without window???

Postby gev » 14. October 2005 18:47

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
gev
 
Posts: 4
Joined: 14. October 2005 18:35

Postby Wiedmann » 14. October 2005 19:59

Pease read the readme and search for "service".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby gev » 14. October 2005 20:49

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!
gev
 
Posts: 4
Joined: 14. October 2005 18:35

Postby Wiedmann » 14. October 2005 21:09

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby gev » 14. October 2005 21:19

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.
gev
 
Posts: 4
Joined: 14. October 2005 18:35

Postby Wiedmann » 14. October 2005 21:46

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby gev » 14. October 2005 21:49

Hmmm can i find somwhere the source of C++ "_spanwn" / "CreateProcess"-function ?? or explanetion what it dose or how??
gev
 
Posts: 4
Joined: 14. October 2005 18:35

Postby Wiedmann » 14. October 2005 22:22

Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 120 guests