Copy database from one mysql sever to another mysql server
There are several methods you can use such as


mysqldump
folder copy
enterprise backup


for mysqldump use following command:

mysqldump -uuser -ppassword --database your_db_name --routines --triggers --events --lock-all-tables &gt;outputfile.sql 


and use following command at destination:

mysql -uroot -ppassword&lt;outputfile.sql.


You can also use following method
  - stop server at source
  - stop server at destination
  - copy all the database folders from source to destination
  - start destination server
  - start source server

Hope it helps