Created
July 24, 2009 18:14
-
-
Save alassek/154457 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export: | |
foreach ($n in (1..15)) { cmd.exe /c "mysqldump -u root --password={password here} s88franchise$n > s88franchise$n.sql" } | |
import: | |
foreach ($n in (1..15)) { cmd.exe /c "mysql -u root --password={password here} s88franchise$n < s88franchise$n.sql" } | |
import (bash): | |
for n in `seq 0 60` | |
do | |
echo "Importing Franchise #$n... " | |
mysql -u root --password={password here} -e "create database s88franchise$n" | |
mysql -u root --password={password here} s88franchise$n < s88franchise$n.sql | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment