Skip to content

Commit

Permalink
Create mysql-flash-copy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfernandovillahernandez authored Mar 9, 2017
1 parent 5f40a83 commit f750ff0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mysql-flash-copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mysql -u root -pSeCrEt << EOF
CREATE DATABASE copy_test_db;
GRANT ALL PRIVILEGES ON copy_test_db.* TO john@localhost IDENTIFIED BY 'pass';
show tables;
EOF
mysqldump --opt -u root -pSeCrEt test_db > copy_test_db.sql
mysqlimport -u root -pSeCrEt copy_test_db < copy_test_db.sql

0 comments on commit f750ff0

Please sign in to comment.