how export mysql server database code example
Example 1: how to export db from mysql
mysqldump -u username -p dbname > dbexport.sql
Example 2: import mysql db
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
mysqldump -u username -p dbname > dbexport.sql
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database