当前位置:网站首页>mysqldump --set-gtid-purged=OFF
mysqldump --set-gtid-purged=OFF
2022-08-02 07:57:00 【Arvin627】
mysqldump -uroot -pPassword --set-gtid-purged=OFF -R databaseName > databaseName.sql
mysql导出时加 --set-gtid-purged=OFF,导入新数据库时,会触发记录到新数据库的binlog日志。如果不加,则新数据库不记录binlog日志。
所以做主从时用了gtid,用mysqldump备份时就要加--set-gtid-purged=OFF,否则在主上导入恢复了数据,主没有了binlog日志,同步则不会被同步。
边栏推荐
- redis的安装与应用
- redis高阶使用之Redisson分布式锁源码解析
- Flink 系统性学习笔记系列
- 研发过程中的文档管理与工具
- flutter 自己写一个组件
- prometheus monitoring mysql_galera cluster
- 5分钟搞懂MySQL - 行转列
- A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?
- 三维体尺测量
- @FeignClient configuration参数配置
猜你喜欢
多版本node的安装与切换详细操作
PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案
IO process thread -> process -> day4
Button to control the running water light (timer)
MGRE综合实验
etcd实现大规模服务治理应用实战
MGRE环境下的OSPF
Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
牛客2022 暑期多校4 D Jobs (Easy Version)(递推优化策略)
RIP综合实验
随机推荐
Ansible 学习总结(11)—— task 并行执行之 forks 与 serial 参数详解
典型的一次IO的两个阶段是什么?阻塞、非阻塞、同步、异步
uniapp 禁止默认返回事件
用户身份标识与账号体系实践
OSPF 综合实验
Biotin-EDA|CAS:111790-37-5| 乙二胺生物素
Elasticserch 自定义字段,用户会频繁的创建和删除字段,怎么设计mapping?
The crawler video crawl tools you get
R语言plotly可视化:plotly可视化回归模型实际值和回归预测值的散点图分析回归模型的预测效能、一个好的模型大部分的散点在对角线附近(predicted vs actual)
Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
高仿【华为消费者业务官网】和精彩动画剖析:练习在低代码平台中嵌入JS代码
flutter解决键盘和输入框不适配问题
.NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
工程师如何对待开源 --- 一个老工程师的肺腑之言
MySQL常见索引类型
sql创建表格 如图 运行完提示invalid table name 是什么原因
BGP solves routing black hole through MPLS
[OC学习笔记]ARC与引用计数
设置 height: auto 却无法触发 transition 动画的解决方案
基本SQL语句(一篇就够了)