Base de données MySQL de ligne de commande Linux Import 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;