Created
January 22, 2020 09:52
-
-
Save LQ80/9875494b1866b4926cc0cd731dd7e445 to your computer and use it in GitHub Desktop.
MySQL Backup Databases
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
for /f %%x in ('mysql.exe -u root -p -e "show databases" -s --skip-column-names') do ( | |
mysqldump.exe -u root --databases %%x > .\databases\%%x.sql | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment