当前位置:网站首页>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
边栏推荐
- MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)
- BeanDefinitionRegistryPostProcessor
- Final review (Day5)
- It is said that the operation and maintenance of shell scripts are paid tens of thousands of yuan a month!!!
- Kubernetes notes (IX) kubernetes application encapsulation and expansion
- [advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation
- Redhat7系统root用户密码破解
- 最大似然估计,散度,交叉熵
- QT read write excel -- qxlsx insert chart 5
- Kubernetes notes (IV) kubernetes network
猜你喜欢
[teacher Zhao Yuqiang] index in mongodb (Part 1)
Jedis source code analysis (II): jediscluster module source code analysis
Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
[teacher Zhao Yuqiang] MySQL high availability architecture: MHA
理解 期望(均值/估计值)和方差
[teacher Zhao Yuqiang] MySQL flashback
深度学习,从一维特性输入到多维特征输入引发的思考
从小数据量 MySQL 迁移数据到 TiDB
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
理解 YOLOV1 第一篇 预测阶段
随机推荐
[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis
CKA certification notes - CKA certification experience post
[escape character] [full of dry goods] super detailed explanation + code illustration!
Kubernetes notes (VII) kuberetes scheduling
Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
2022.6.30DAY591
Convolution operation in convolution neural network CNN
[teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb
Apple submitted the new MAC model to the regulatory database before the spring conference
Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
Sorry, this user does not exist!
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
@Import annotation: four ways to import configuration classes & source code analysis
PHP用ENV获取文件参数的时候拿到的是字符串
Understand one-way hash function
从小数据量分库分表 MySQL 合并迁移数据到 TiDB
[teacher Zhao Yuqiang] use Oracle's tracking file
Why should there be a firewall? This time xiaowai has something to say!!!
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
Kubernetes notes (V) configuration management