It is very simple
Log in to First Server and give the following command:
$ mysqldump -u root -p database-name > filename.sql
On the second Server, you can import the data with the following command:
$ mysql -u root -p -D database-name < filename.sql