Hello,
mysqldump -u root -p doxz | mysql -h s2.com -u root -p doxz
You could use the following commands to take a dump and then restore the db in a single line.
Code:
mysqldump -h hostname -u username --password=passphrase dbname > dumpfile.sql ; mysql -h hostname -u username --password=passphrase dbname < dumpfile.sql
OR
mysqldump -h hostname -u username --password=passphrase dbname | mysql -h hostname -u username --password=passphrase
However there might be other issues to be taken care of in this procedure. IMO you better transfer the dumpfile to other server and restore it there. Can give a try though 
Regards
Bookmarks