Home > Backend Development > PHP Tutorial > MYSQL里头插入500万条数据,最优的方式插入

MYSQL里头插入500万条数据,最优的方式插入

WBOY
Release: 2016-06-13 10:45:15
Original
1027 people have browsed it

MYSQL里面插入500万条数据,最优的方式插入
表结构比较简单id ,name,area,sex,lasttime. innodb collate=utf8_general_ci

------解决方案--------------------
处理成 csv 格式的文件
用 LOAD DATA INFILE 指令加载
------解决方案--------------------
什么样的文件还是采集的?
------解决方案--------------------
BigDump
------解决方案--------------------

探讨

处理成 csv 格式的文件
用 LOAD DATA INFILE 指令加载

------解决方案--------------------
你可以先将索引删掉,导入完成后再重建。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template