当前位置:网站首页>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
边栏推荐
- Apple submitted the new MAC model to the regulatory database before the spring conference
- Crontab command usage
- [teacher Zhao Yuqiang] RDB persistence of redis
- What's the difference between using the Service Worker Cache API and regular browser cache?
- Kubernetes notes (10) kubernetes Monitoring & debugging
- Code generator - single table query crud - generator
- Pytorch builds the simplest version of neural network
- tabbar的设置
- BeanDefinitionRegistryPostProcessor
- Today, many CTOs were killed because they didn't achieve business
猜你喜欢
![[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]

Analysis of the example of network subnet division in secondary vocational school

CKA certification notes - CKA certification experience post

Simple solution of small up main lottery in station B

为什么网站打开速度慢?
![[teacher Zhao Yuqiang] redis's slow query log](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[teacher Zhao Yuqiang] redis's slow query log
![[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer](/img/9e/a4558e8e53c9655cbc1a38e8c0536e.jpg)
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer

How does win7 solve the problem that telnet is not an internal or external command

Life is a process of continuous learning
![[escape character] [full of dry goods] super detailed explanation + code illustration!](/img/33/ec5a5e11bfd43f53f2767a9a0f0cc9.jpg)
[escape character] [full of dry goods] super detailed explanation + code illustration!
随机推荐
Kubernetes notes (III) controller
Code generator - single table query crud - generator
[teacher Zhao Yuqiang] use the catalog database of Oracle
Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
Maximum likelihood estimation, divergence, cross entropy
The programmer shell with a monthly salary of more than 10000 becomes a grammar skill for secondary school. Do you often use it!!!
Virtual memory technology sharing
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]
Ext4 vs XFS -- which file system should you use
[teacher Zhao Yuqiang] the most detailed introduction to PostgreSQL architecture in history
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
Niuke JS separator
Redis cannot connect remotely.
Btrfs and ext4 - features, strengths and weaknesses
Kubernetes notes (V) configuration management
88. 合并两个有序数组
[teacher Zhao Yuqiang] index in mongodb (Part 1)
Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
[untitled]
项目总结--01(接口的增删改查;多线程的使用)