What's the fastest way to replicate a MySQL database from one machine to another? The two machines are connected via LAN. How to do it without mysqldump?
If using mysqldump, is the fastest way
$ mysqldump -h localhost -u foo -pbar mydb > mydb.sql
and then copy mydb.sql to desination machine and do
$ mysql -h localhost -u foo -pbar < mydb.sql
? When importing, do I need to specify the database?
