mysql dump command line linux code example
Example 1: mysql dump database command line linux
mysqldump -u<user_name> -p<user_password> <database_name> > <file_name>.sql
Example 2: import mysql dump command line
mysql -u username -p database_name < file.sql
Example 3: import mysql dump command line
mysql> use db_name;
mysql> source backup-file.sql;