开发者

Command Line in Batch file?

开发者 https://www.devze.com 2023-01-10 21:20 出处:网络
I am making a batch file to automate mysql installation silently.When I type the following开发者_开发技巧 line in the command prompt everything works fine.

I am making a batch file to automate mysql installation silently. When I type the following开发者_开发技巧 line in the command prompt everything works fine.

"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqlinstanceconfig.exe" -i -q ServiceName="mydb" RootPassword="pos" ServerType=DEVELOPMENT DatabaseType=INNODB Port=3306

My question is: can I somehow add this to a batch file so it will run it as if I entered it in the command line?

Thanks, Matt


yes, its easy. As Santa commented, just put your command inside some text file, change the extension of that file to .bat. Thats all !!

0

精彩评论

暂无评论...
验证码 换一张
取 消