how to import database by terminal in ubuntu code example Example: import database using cmd ubuntu mysql -u username -p database_name < /path/to/file.sql