mysql pv import code example
Example 1: pv mysql import
pv sqlfile.sql | mysql -uxxx -pxxxx dbname
Example 2: command line mysql import
mysql -u username -p database_name < file.sql
Example 3: Import mysql'
LOAD DATA INFILE "name.csv" INTO TABLE "TableName"
FIELDS TERMINATED BY "sign"
LINES TERMINATED BY "sign"
IGNORE 1 LINES
(columns);