You could probably mysqldump the data striaght into mysql on the other server
Suppose
- original server's IP is 10.1.2.30
- new server's IP is 10.1.2.40
You could do this in one of four ways
OPTION 01) Do this on the old server
mysqldump -uusername -ppassword --all-databases --routines --triggers --flush-privileges > /path/to/mysqldata.sql
mysql -h10.1.2.40 -uusername -ppassword -A < /path/to/mysqldata.sql
OPTION 02) You could also do it in one line on the old server
mysqldump -uusername -ppassword --all-databases --routines --triggers --flush-privileges | mysql -h10.1.2.40 -uusername -ppassword -A
OPTION 03) Do this on the new server
mysqldump -h10.1.2.30 -uusername -ppassword --all-databases --routines --triggers --flush-privileges > /path/to/mysqldata.sql
mysql -uusername -ppassword -A < /path/to/mysqldata.sql
OPTION 04) You could also do it in one line on the new server
mysqldump -h10.1.2.30 -uusername -ppassword --all-databases --routines --triggers --flush-privileges | mysql -uusername -ppassword -A
Give it a Try !!!
mysql -u your_user_name -p your_database < ./yoursqlfile.sql. It will ask your your password then go. If you just need the site content, use the WordPress exporter/importer. Much easier. – Christopher Davis Feb 21 at 16:37