bat脚本之启动MySQL服务

@echo off
:: 获取管理员权限
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

@echo begin stop mysql server ...
net stop mysql

TIMEOUT /T 2
@echo begin start mysql server ...

net start mysql 

:: 暂停
:: @pause

:: 退出
exit 

  

posted @ 2020-10-22 10:19  想念泡凤爪的味道  阅读(1010)  评论(0编辑  收藏  举报