Skip to content

Instantly share code, notes, and snippets.

@legoboy0215
Forked from skillmatic-co/import.sh
Created June 5, 2016 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legoboy0215/39e4533d2a7a18b21419d8f2bf5745d1 to your computer and use it in GitHub Desktop.
Save legoboy0215/39e4533d2a7a18b21419d8f2bf5745d1 to your computer and use it in GitHub Desktop.
#!/bin/bash
USER="root"
PASSWORD=""
FILES="/Users/tenold/Backups/MySQL/*"
for f in $FILES
do
echo "Processing $f file..."
mysql -u $USER -p$PASSWORD < $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment