当前位置:网站首页>MySQL带二进制的库表导出导入
MySQL带二进制的库表导出导入
2022-07-03 06:02:00 【UU_Yang】
【mysqldump】导出sql脚本,不能使用select导出部分字段
导出
>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"
导入
>mysql -hlocalhost -P3307 -uroot -p123456 mydb <export.sql
或者先mysql登录,切换DB,执行source export.sql
【sql】导出数据,可以使用select语句
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';
导入
load data infile 'C:/ProgramData/MySQL/MySQL Server 5.7/Uploads/out.csv' into table mydb.mytable
【mysql】导出数据,可以使用select
mysql -h192.168.1.12 -P3307 -uroot -p123456 test -e "select id,name,age from usertable" > d:\users.csv
边栏推荐
- 1. Somme des deux nombres
- Kubernetes notes (VII) kuberetes scheduling
- Code generator - single table query crud - generator
- Analysis of the example of network subnet division in secondary vocational school
- Leetcode problem solving summary, constantly updating!
- Simple handwritten ORM framework
- Clickhouse learning notes (2): execution plan, table creation optimization, syntax optimization rules, query optimization, data consistency
- Es 2022 officially released! What are the new features?
- Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
- Solve the problem of automatic disconnection of SecureCRT timeout connection
猜你喜欢

Configure DTD of XML file
![Ensemble, série shuishu] jour 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Ensemble, série shuishu] jour 9

Deep learning, thinking from one dimensional input to multi-dimensional feature input

Why is the website slow to open?
![[teacher Zhao Yuqiang] index in mongodb (Part 1)](/img/2d/277ec737f2a7065831a19d036e61e1.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 1)

Solve the problem of automatic disconnection of SecureCRT timeout connection

智牛股项目--05

多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)

Loss function in pytorch multi classification
![[teacher Zhao Yuqiang] RDB persistence of redis](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] RDB persistence of redis
随机推荐
Analysis of the example of network subnet division in secondary vocational school
深度学习,从一维特性输入到多维特征输入引发的思考
Leetcode solution - 01 Two Sum
Strategy pattern: encapsulate changes and respond flexibly to changes in requirements
Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
2022.7.2day594
Using the ethtool command by example
C 语言文件操作函数大全 (超详细)
Maximum likelihood estimation, divergence, cross entropy
项目总结--01(接口的增删改查;多线程的使用)
1. Sum of two numbers
Download the corresponding version of chromedriver
Beandefinitionregistrypostprocessor
[escape character] [full of dry goods] super detailed explanation + code illustration!
MySQL startup error: several solutions to the server quit without updating PID file
[teacher Zhao Yuqiang] Cassandra foundation of NoSQL database
Kubernetes notes (V) configuration management
从 Amazon Aurora 迁移数据到 TiDB
[teacher Zhao Yuqiang] index in mongodb (Part 1)
Es 2022 officially released! What are the new features?