Last active
August 29, 2015 14:07
-
-
Save ihsanberahim/42e090f447b54a0c8bd1 to your computer and use it in GitHub Desktop.
Automate Database Backup using Mysql Workbench on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set DATET=%date:~-4%_%date:~7,2% | |
"mysqldump.exe" --host="localhost" --user="{username}" --password="{password}" {database name} > "{folder path}"backup_%DATET%_{database name}.sql | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GUIDES:
1# Install Mysql Workbench - http://dev.mysql.com/downloads/workbench/
2# make sure "mysqldump.exe" work in your command prompt
3# attach the script in Windows Task Scheduler and set it Run whether the user is logged in or not
SOURCE:
http://goo.gl/iD8vNN