Quantcast
Channel: Uly.me
Viewing all articles
Browse latest Browse all 15

MySQL Restore to another DB

$
0
0

In order to restore a MySQL database to another database, use routines and triggers.

mysqldump -p user -p --routines --triggers db1 > db1.sql

To restore to another database, just use the normal command.

mysql -u user -p db2 < db1.sql

Viewing all articles
Browse latest Browse all 15

Trending Articles