import mysql db
snippet in sql

how to import database in mysql by cmd

user3554

mysql -u username -p database_name < file.sql

import database mysql command line

user795

mysql -u username -p new_database < data-dump.sql

import mysql db

user6953

zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database

Import mysql'

user3737

LOAD DATA INFILE "name.csv" INTO TABLE "TableName"
FIELDS TERMINATED BY "sign"
LINES TERMINATED BY "sign"
IGNORE 1 LINES
(columns);