Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Following How to start a service with certain start parameters on Windows. Any ideas why the following doesn't work?

sc start MySQL --skip-networking
mysql -uroot -p -e "show variables like '%network%';"
| Variable_name   | Value |
| skip_networking | OFF   |

I have also tried the obvious sc start MySQL "--skip-networking". I simply want to block access until finished running scripts

share|improve this question
You could try something like this: sc config MySQL binPath= "C:\Path_to\MySQL\MySQL.exe --skip-networking" sc start MySQL Once you are done, remove the --skip-networking the same way. – dusan.bajic Apr 11 '13 at 16:25
Yeah but at the risk of overriding a perfectly good config (i.e. the --defaults-file declaration). I can also workaround it by executing mysqld directly followed by manually shutting it down with mysqladmin shutdown. I wonder why the parameter is ignored... may be a tumbleweed! – KCD Apr 11 '13 at 23:01

Your Answer


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

Browse other questions tagged or ask your own question.