Posted By

jacktan on 10/30/14


mysql server windows mysqladmin

Versions (?)

A windows batch to shutdown Mysql server

 / Published in: DOS Batch

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

Vars to to specify

  • ${EnvSet_Bash}


vars specified like

pluss other bash commond

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

Click the bat file to run it .

  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  

You need to login to post a comment.