A windows batch to run Mysql server


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

Run a Mysql server using command line 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
mysqld --defaults-file=%mysqlConf% --print-defaults
pause
mysqld --defaults-file=%mysqlConf% --console
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. mysqld --defaults-file=%mysqlConf% --print-defaults
  5. ::Run the server actually
  6. mysqld --defaults-file=%mysqlConf% --console

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.