Last active
February 5, 2020 10:53
-
-
Save girishsalaskar/ecfaac9d993cd37b8a7c404a8dd508e5 to your computer and use it in GitHub Desktop.
Import multiple db files from folder into mysql db (Details : https://codewander.blogspot.com/2020/02/import-multiple-db-files-from-folder.html)
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 fileName in `ls /path/to/db/files/dir`; | |
do | |
echo "Importing - $fileName"; | |
mysql --user=root --password --host=127.0.0.1 --port=3306 dbName < /path/to/db/files/dir/$fileName; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment