Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. MYSQL_USER=root
  2. MYSQL_PASS=root
  3. MYSQL_CONN="-u${MYSQL_USER} -p${MYSQL_PASS}"
  4. #
  5. # Collect all database names except for
  6. # mysql, information_schema, and performance_schema
  7. #
  8.  
  9. for f in dbs/*.sql
  10. do
  11. echo "Importing ${f}";
  12. /Applications/MAMP/Library/bin/mysql ${MYSQL_CONN} < ${f};
  13. echo "Imported ${f}";
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement