mysql import from sql file
snippet in sql

mysql import sql file

user8596

mysql -u username -p database_name < file.sql

mysql load sql from file

user3447

 mysql> use db_name;
 mysql> source file_name.sql;

mysql import from sql file

user9776

mysql -u username -p database_name < file.sql
; OR
 mysql> use db_name;
 mysql> source file_name.sql;