Posted By

jacktan on 10/30/14


Tagged

mysql server windows mysqld


Versions (?)

A windows batch to run Mysql server


 / Published in: DOS Batch
 

Run a Mysql server using command line with a specified option file.

Vars to to specify

  • ${EnvSet_Bash}

Demo

vars specified like

pluss other bash commond

@echo off
call set-mysqlRT-Env
mysqld --defaults-file=%mysqlConf% --print-defaults
pause
mysqld --defaults-file=%mysqlConf% --console
pause

Click the bat file to run it .

  1. @echo off
  2. call ${EnvSet_Bash}
  3. ::A pause to comfirm the options
  4. mysqld --defaults-file=%mysqlConf% --print-defaults
  5. ::Run the server actually
  6. mysqld --defaults-file=%mysqlConf% --console

Report this snippet  

You need to login to post a comment.