Skip to content

Instantly share code, notes, and snippets.

@alpha1
Created June 15, 2017 21:48
Show Gist options
  • Save alpha1/b22f7de1df627f6ee142d8030ce2846c to your computer and use it in GitHub Desktop.
Save alpha1/b22f7de1df627f6ee142d8030ce2846c to your computer and use it in GitHub Desktop.
Clone Database
CREATE TABLE `new_db`.`new_table` LIKE `old_db`.`old_table`;
INSERT `new_db`.`new_db` SELECT * FROM `old_db`.`old_table-db`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment