In Summary, it is a three step process :
a) Step One—Perform a MySQL Dump
mysqldump -u root -p --opt [database name] > [database name].sql
b) Step Two—Copy the Database
scp [database name].sql [username]@[servername]
ath/to/database/
c) Step Three—Import the Database
mysql -u root -p newdatabase < /path/to/newdatabase.sql
Most links available online will summarise the things around these only.