import and export mysql database code example
Example 1: import mysql dump database command line linux
mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql
Example 2: import mysql db
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database