Linha de comando Linux Importar banco de dados 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> use db_name;
mysql> source folder_path/file_name.sql;
mysql> use db_name;
mysql> source file_name.sql;