@echo off
echo -------------------------
echo mysql backup
echo -------------------------
mysqldump -h 服务器IP地址 -u 用户名-p密码 数据库名>保存的路径-%date:~0,4%-%date:~5,2%-%date:~8,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%.sql
@echo off
rem pause
echo -------------------------
echo mysql backup
echo -------------------------
mysqldump -h 服务器IP地址 -u 用户名-p密码 数据库名>保存的路径-%date:~0,4%-%date:~5,2%-%date:~8,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%.sql
@echo off
rem pause