how to import database using command line in ubuntu code example
Example 1: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql
Example 2: import mysql dump database command line linux
mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql
Example 3: import database using cmd ubuntu
mysql -u username -p database_name < /path/to/file.sql
Example 4: how to import database in mysql command line in ubuntu dbeaver
//go to the DB-Connection, create a new DB
//Right-Click on this DB, Choose Tools > Import. Than choose the .sql-file.