摘要:
set s=%date:~0,4%%date:~5,2%%date:~8,2%%time:~1,1%%time:~3,2%%time:~6,2%mysqldump -u root -ppasswd test> E:\51MobApp\Mysql\test_%s%_bak.sqlInstall.bat:@echo offcd /d %~dp0echo 执行此脚本会清除所有数据set /p svr=请输入Mysql服务器IP: echo mysql -u root -h %svr% -p < All.sqlmysql -u root -h %svr% -p < All.sqlpa 阅读全文