run mysql dump file from command line code example
Example 1: dump mysql
mysqldump -u username -p database_name > data-dump.sql
Example 2: import mysql dump command line
mysql> use db_name;
mysql> source backup-file.sql;
mysqldump -u username -p database_name > data-dump.sql
mysql> use db_name;
mysql> source backup-file.sql;