Return to Snippet

Revision: 67779
at October 30, 2014 01:19 by jacktan


Updated Code
@echo off
call ${EnvSet_Bash}
::A pause to comfirm the options
mysqld --defaults-file=%mysqlConf% --print-defaults
pause
::Run the server actually
mysqld --defaults-file=%mysqlConf% --console
pause

Revision: 67778
at October 30, 2014 01:10 by jacktan


Initial Code
@echo off
call ${EnvSet_Bash}
mysqld --defaults-file=%mysqlConf% --print-defaults
pause
mysqld --defaults-file=%mysqlConf% --console
pause

Initial URL


Initial Description
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 .

Initial Title
A windows batch to run Mysql server

Initial Tags
mysql, server, windows

Initial Language
DOS Batch