import database code example
Example 1: export database mysql
mysqldump -u [username] -p [database-you-want-to-dump] > [path-to-place-data-dump]
Example 2: import mysql db
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
mysqldump -u [username] -p [database-you-want-to-dump] > [path-to-place-data-dump]
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database