mysql> use db_name;
mysql> source file_name.sql;
import database mysql command line -
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;