mysql -h export code example
Example 1: how to import database in mysql by cmd
mysql -u username -p database_name < file.sql
Example 2: Import mysql'
LOAD DATA INFILE "name.csv" INTO TABLE "TableName"
FIELDS TERMINATED BY "sign"
LINES TERMINATED BY "sign"
IGNORE 1 LINES
(columns);