Guest User

Untitled

a guest
Apr 7th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. USER=""
  4. PASSWORD=""
  5.  
  6. for file in /tmp/db/*.sql; do
  7. [ -e "$file" ] || continue
  8. echo "Importing file: $file"
  9. mysql -h -P 3306 -u $USER -p$PASSWORD < $file
  10. done
Add Comment
Please, Sign In to add comment