Created
July 11, 2017 14:09
-
-
Save pm98zz-c/e901b95804792a30f8985ac8bcdb8fdf to your computer and use it in GitHub Desktop.
quick test of db clone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -uroot -e "show tables FROM drupal;" | grep -v '^Tables_in_' | { while read -r table ;\ | |
do mysql -uroot -e "CREATE TABLE new_build.$table AS SELECT * FROM drupal.$table;"; \ | |
done ; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment