import database in mysql ubuntu code example
Example 1: import database mysql command line
mysql -u username -p new_database < data-dump.sql
Example 2: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql
mysql -u username -p new_database < data-dump.sql
mysql -u<username> -p<password> databaseName < /path/fileName.sql