Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm on Windows 7. I'm trying to run a .bat file where I stop and start MySQL and run some other commands.

However, running "C:\Program Files (x86)\EasyPHP\binaries\mysql\bin\mysqld.exe" results in starting mysqld, which then occupies the prompt, and the other .bat commands are not run.

  • I tried using Start → mysqld does not start
  • Start /B → mysqld does not start
  • CMD /C → mysqld just starts in the same window
  • Start /B startMysql.bat (a seperate bat that starts mysql) → mysqld does not start

I use this to test the commands:

@echo  on
CMD /C "C:\Program Files (x86)\EasyPHP\binaries\mysql\bin\mysqld.exe"
timeout 2:
PAUSE
share|improve this question
    
Did you try: start cmd /c "C:\Program Files (x86)\EasyPHP\binaries\mysql\bin\mysqld.exe" The combination is sometimes needed to get things to work right. –  krowe Aug 12 '13 at 16:26
    
As you can see from my question I tried that, its in the list of things I tried. It just starts mysqld in the same window, losing the option to run other commands –  saratis Aug 13 '13 at 8:15
add comment

1 Answer

I solved it by installing MYSQL as a service and running net start mysql and net stop mysql. That doesn't solve the issue, so I will leave this open for someone to answer. Otherwise I will accept this as the answer.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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