当前位置:网站首页>Little known MySQL import data
Little known MySQL import data
2022-06-27 21:45:00 【sorghum】
source command
mysql -uroot -p
source E:/data.sql Notice that there are no quotes
load data command
mysql -uroot -p
load data local infile "E:/data.sql" into table database.`student` fields terminated by "\t" lines terminated by "\n";
Parameter description
database.`student` : Which table represents the database
fields terminated by "\t" lines : Represents the field separator tabs
lines terminated by "\n" : Represents that each line of data is separated by a newline symbol
Strict import data.sql data format ( With the help of Navicat Perfect export custom text format )
1: Beijing
2: Shanghai
3: Guangzhou
mysqlimport
mysqlimport -h localhost -uroot -p --fields-terminated-by=\t --local database E:/student.txt --compress=true --verbose=true
Parameter description
--fields-terminated-by= \t Represents the field separator tabs
--local database E:/student.txt : Which database does it represent student surface
--compress=true : Represents the use of compression protocols to speed up import
--verbose=true : Represents the display of detailed import information
mysqlimport It's right load data Packaging
Three methods of import speed comparison source < load data = mysqlimport
Actually import 10million data mysqlimport Time consuming 5 minute The speed is still considerable
Add later kettle Open source tools import large amounts of data
Actually measured kettle Speed and mysqlimport Quite a But the visualization operation is relatively simple
Operation steps [ Add link description ](http://www.kettle.net.cn/2108.html)
边栏推荐
- At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions
- Covering access to 2w+ traffic monitoring equipment, EMQ creates a new digital engine for all elements of traffic in Shenzhen
- 让马化腾失望了!Web3.0,毫无希望
- Go从入门到实战——Context与任务取消(笔记)
- 关于异常处理的知识整理
- Go from introduction to actual combat -- channel closing and broadcasting (notes)
- Modify large online games through CE modifier
- SQL server for circular usage
- 华为伙伴暨开发者大会2022开源时刻全纪录
- 请教CMS小程序首页的幻灯片在哪里设置?
猜你喜欢
Experience Navicat premium 16, unlimited reset, 14 day trial method (with source code)
CEPH distributed storage
Go从入门到实战——接口(笔记)
Go from introduction to actual combat -- channel closing and broadcasting (notes)
MySQL usage notes 1
JVM memory structure when creating objects
win11桌面出现“了解此图片”如何删除
Go from starting to Real - Interface (note)
Squid proxy server
Go从入门到实战——Panic和recover(笔记)
随机推荐
Here are 12 commonly used function formulas for you. All used ones are good
MySQL usage notes 1
After being forced to develop the app within 20 days, the group was laid off, and the technical director angrily criticized it: I wish "closure as soon as possible!"
"Apprendre cette image" apparaît sur le Bureau win11 comment supprimer
富文本 考试 填空题
Go from starting to Real - Interface (note)
猜拳游戏专题训练
Covering access to 2w+ traffic monitoring equipment, EMQ creates a new digital engine for all elements of traffic in Shenzhen
100 important knowledge points that SQL must master: retrieving data
创建对象时JVM内存结构
Tiktok's interest in e-commerce has hit the traffic ceiling?
数据平台调度升级改造 | 从Azkaban 平滑过度到Apache DolphinScheduler 的操作实践
Golang 使用正则来匹配出子字符串函数
ARCS模型介绍
如何将队列里面的内容没秒钟执行一次优先级
关于异常处理的知识整理
Ceph分布式存储
Very comprehensive dolphin scheduler installation and use documents
Full record of 2022 open source moment at Huawei partners and Developers Conference
io流代码