Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

 
discard

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

Browse other questions tagged or ask your own question.