This may sound weird but instead of lauching

mysql -u name -ppass 

i would like to start the cmd then mysql in it. However i only know how to start them both but not how to get the commend to launch mysql right away.

link|improve this question

50% accept rate
I cant really understand your question - can you elaborate a little ? it could be as simple as adding an ampersand to the end of your mysql command mysql -u name -ppass & – c10k Consulting Oct 7 '10 at 2:43
feedback

1 Answer

up vote 3 down vote accepted

Not really sure if that is what you are looking for but if you run cmd with the /K once mysql proccess is done the cmd will remain open and usable.

/K Carries out My_Command but remains

Example:

cmd /K mysql -u name -ppass

Using start

start /WAIT mysql -u name -ppass

Note: the above command will not return you to the command line once it ends.

You can aswell use:

start mysql -u name -ppass
link|improve this answer
Another way is the "Start" command. Something like START mysql -u name -ppass. You can use the /WAIT parameter to make the first cmd instance wait until your mysql command terminates. – Jeff Halley Oct 7 '10 at 2:52
@jeff updated!! – Prix Oct 7 '10 at 3:01
/K was what i was looking for. – acidzombie24 Oct 7 '10 at 3:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.