import file mysql terminal
snippet in sql

import database mysql command line

user9556

mysql -u username -p new_database < data-dump.sql

import file mysql terminal

user3960

mysql -u<username> -p<password> databaseName < /path/fileName.sql

import mysql dump database command line linux

user5995

mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql