mysql - Database Restoration -


i little bit confused in database backup process.

suppose, have 1 database named "a" , created database name "b". database "b" have same structure database "a". in short database "a" , "b" same in table's structure database names different only.

so possible restore database "a" in database "b"?

if possible tell me command it.

note: both databases on different servers.

nohup mydumper -h <host> -p 3306 -u <user> -p <pwd> -t 4 -m -b <dbname1> -o /root/test/mydumper_<dbname> & 

dump data without table structure;

nohup myloader -h <host> -p 3306 -u <user> -p <pwd> -e -b <dbname2> -d /root/test/mydumper_<dbname>/ & 

restore data dbname2;

just ignore table structure, dump data sql;


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -