ubuntu import mysql dump code example
Example 1: how to import database in mysql by cmd
mysql -u username -p database_name < file.sql
Example 2: mysql export database command line
mysqldump -uroot -p root YourDatabaseName > WantedSQLFile.sql
mysql -u username -p database_name < file.sql
mysqldump -uroot -p root YourDatabaseName > WantedSQLFile.sql