mysql import from dump file code example
Example 1: import database mysql command line
mysql -u username -p new_database < data-dump.sql
Example 2: how to import mysql database command line
mysql>create database yourDatabaseName;
mysql>use yourDatabaseName;