import and export in mysql code example
Example 1: how to export db from mysql
mysqldump -u username -p dbname > dbexport.sql
Example 2: how to import database in mysql by cmd
mysql -u username -p database_name < file.sql
mysqldump -u username -p dbname > dbexport.sql
mysql -u username -p database_name < file.sql