当前位置:网站首页>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
边栏推荐
- 70 shell script interview questions and answers
- Using the ethtool command by example
- Understand the first prediction stage of yolov1
- Configure DTD of XML file
- [teacher Zhao Yuqiang] MySQL high availability architecture: MHA
- [set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
- Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
- PHP notes are super detailed!!!
- [teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system
- [teacher Zhao Yuqiang] use Oracle's tracking file
猜你喜欢

SVN分支管理

Understand one-way hash function

智牛股项目--05
![[together Shangshui Shuo series] day 7 content +day8](/img/fc/74b12addde3a4d3480e98f8578a969.png)
[together Shangshui Shuo series] day 7 content +day8

从小数据量分库分表 MySQL 合并迁移数据到 TiDB

Maximum likelihood estimation, divergence, cross entropy
![[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]](/img/b0/aa5dce0bb60c50eea907de9e127d6c.jpg)
[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]

2022.DAY592

Oauth2.0 - Introduction and use and explanation of authorization code mode
![[teacher Zhao Yuqiang] index in mongodb (Part 2)](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 2)
随机推荐
Oauth2.0 - explanation of simplified mode, password mode and client mode
BeanDefinitionRegistryPostProcessor
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]
What's the difference between using the Service Worker Cache API and regular browser cache?
The programmer shell with a monthly salary of more than 10000 becomes a grammar skill for secondary school. Do you often use it!!!
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
Capacity expansion mechanism of map
JDBC connection database steps
Kubernetes notes (10) kubernetes Monitoring & debugging
智牛股--03
Oauth2.0 - Introduction and use and explanation of authorization code mode
BeanDefinitionRegistryPostProcessor
从 Amazon Aurora 迁移数据到 TiDB
Kubernetes resource object introduction and common commands (V) - (configmap)
Ansible firewall firewalld setting
1. 两数之和
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
Solve the problem that Anaconda environment cannot be accessed in PowerShell
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram
Common exceptions when Jenkins is released (continuous update...)