当前位置:网站首页>Mysql database table export and import with binary
Mysql database table export and import with binary
2022-07-03 06:03:00 【UU_ Yang】
【mysqldump】 export sql Script , Out of commission select Export some fields
export
>mysqldump -hlocalhost -P3307 -uroot -p123456 mydb mytable --where="id = 412123456" --hex-blob --add-drop-table=false --add-locks=false --no-create-info=true>"d:\export.sql"
Import
>mysql -hlocalhost -P3307 -uroot -p123456 mydb <export.sql
Or first mysql Sign in , Switch DB, perform source export.sql
【sql】 Derived data , have access to select sentence
select id, c1, c2, c3, c4, c5, c6, c7, c8 from mydb.mytable limit 100 into outfile
'C:/ProgramData/MySQL/MySQL Server 5.7/Uploads/out.csv' fields Terminated by',' lines terminated by'\r\n';
Import
load data infile 'C:/ProgramData/MySQL/MySQL Server 5.7/Uploads/out.csv' into table mydb.mytable
【mysql】 Derived data , have access to select
mysql -h192.168.1.12 -P3307 -uroot -p123456 test -e "select id,name,age from usertable" > d:\users.csv
边栏推荐
- [trivia of two-dimensional array application] | [simple version] [detailed steps + code]
- Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
- Es 2022 officially released! What are the new features?
- JDBC connection database steps
- Txt document download save as solution
- Kubernetes resource object introduction and common commands (V) - (configmap)
- Es remote cluster configuration and cross cluster search
- 88. 合并两个有序数组
- Kubernetes notes (VI) kubernetes storage
- Jetson AgX Orin platform porting ar0233 gw5200 max9295 camera driver
猜你喜欢

How to create and configure ZABBIX

Oauth2.0 - Introduction and use and explanation of authorization code mode
![[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation](/img/c2/991b8febd262cf9237017adc9d1221.jpg)
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation

Understand the first prediction stage of yolov1

The most responsible command line beautification tutorial

智牛股项目--04

Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow

Es remote cluster configuration and cross cluster search

卷积神经网络CNN中的卷积操作详解
![[teacher Zhao Yuqiang] index in mongodb (Part 1)](/img/2d/277ec737f2a7065831a19d036e61e1.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 1)
随机推荐
[teacher Zhao Yuqiang] MySQL high availability architecture: MHA
Pytorch dataloader implements minibatch (incomplete)
Convolution operation in convolution neural network CNN
Disruptor learning notes: basic use, core concepts and principles
Analysis of Clickhouse mergetree principle
Solve the problem of automatic disconnection of SecureCRT timeout connection
Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
Using the ethtool command by example
Qt读写Excel--QXlsx插入图表5
[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]
Leetcode solution - 02 Add Two Numbers
伯努利分布,二项分布和泊松分布以及最大似然之间的关系(未完成)
Code generator - single table query crud - generator
Simple handwritten ORM framework
[Zhao Yuqiang] deploy kubernetes cluster with binary package
PHP notes are super detailed!!!
Kubernetes notes (VII) kuberetes scheduling
Txt document download save as solution
Complete set of C language file operation functions (super detailed)
从小数据量分库分表 MySQL 合并迁移数据到 TiDB