Skip to content

Instantly share code, notes, and snippets.

@danilodorgam
Forked from skillmatic-co/import.sh
Created April 23, 2018 03:04
Show Gist options
  • Save danilodorgam/8c27df165d3f9a1ea68159d1f4f5aa16 to your computer and use it in GitHub Desktop.
Save danilodorgam/8c27df165d3f9a1ea68159d1f4f5aa16 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