Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[mysql 数据库备份脚本] for windows #批处理
rem *******************************Code Start*****************************
@echo off
set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"
mysqldump --opt -uroot -pyake110 hospital > D:\db_backup\hospital_%Ymd%.sql
@echo on
rem *******************************Code End*****************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.