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