Skip to content

Instantly share code, notes, and snippets.

@kopiro
Created August 21, 2012 10:41
Show Gist options
  • Save kopiro/3414393 to your computer and use it in GitHub Desktop.
Save kopiro/3414393 to your computer and use it in GitHub Desktop.
#!/bin/bash
/usr/local/mysql/bin/mysqldump --add-drop-database -h $1 -u $2 -p $5 > /tmp/dump.sql; mysql -h $3 -u $4 -p $5 < /tmp/dump.sql;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment