Línea de comandos de Linux Importar base de datos MySQL
# if your database is not locally hosted
mysql -u username -p -h dbhost dbname < filename.sql
Alert Ant
# if your database is not locally hosted
mysql -u username -p -h dbhost dbname < filename.sql
mysql -u username -p database_name < file.sql
mysql> use db_name;
mysql> source file_name.sql;
mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql
Source : https://www.programmingquest.com/2018/08/how-to-export-mysql-database-using.html
open cmd
set mysql path in cmd
set path=c:\wamp\bin\mysql\mysql5.6.17\bin
For database import (Restore):
mysql -u YourUser -p YourDatabaseName < filename.sql
mysql> create new_database;
mysql> use new_database;
mysql> source (Here you need to import the path of the SQL file);
E.g.:
mysql> source E:/test/dump.sql;