MYSQL inserts 5 million data records. the optimal way to insert a table is simple: id, name, area, sex, lasttime. innodbcollateutf8_general_ci ------ solution ------------------ use the LOADDATAINFILE command to load files in csv format ------ solution --------- insert 5 million pieces of data in MYSQL and insert the data in the optimal way
The table structure is relatively simple: id, name, area, sex, lasttime. innodb collate = utf8_general_ci
------ Solution --------------------
Process files in csv format
Load data infile command
------ Solution --------------------
What types of files are collected?
------ Solution --------------------
BigDump
------ Solution --------------------
Discussion
Process files in csv format
Load data infile command
------ Solution --------------------
You can delete the index and import it before recreating it.