A windows batch to shutdown Mysql server


/ Published in: DOS Batch
Save to your folder(s)

Run `mysqladmin` to shutdown msyql server with a specified option file.

**Vars** to to specify

+ ${EnvSet_Bash}

**Demo**

vars specified like

+ ${EnvSet_Bash}=[set-mysqlRT-Env](http://www.snipplr.com/view/80407/an-example-bash-file-for-set-temporary-path/ "set-mysqlRT-Env.bat")

pluss other bash commond

@echo off
call set-mysqlRT-Env
mysqladmin --defaults-file=%mysqlConf% --print-defaults
pause
mysqladmin --defaults-file=%mysqlConf% shutdown
pause

Click the bat file to run it .


Copy this code and paste it in your HTML
  1. @echo off
  2. call ${EnvSet_Bash}
  3. ::A pause to comfirm the options
  4. mysqladmin --defaults-file=%mysqlConf% --print-defaults
  5. ::Run actually
  6. mysqladmin --defaults-file=%mysqlConf% shutdown

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.