当前位置:网站首页>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.sqlmysql导出时加 --set-gtid-purged=OFF,导入新数据库时,会触发记录到新数据库的binlog日志。如果不加,则新数据库不记录binlog日志。
所以做主从时用了gtid,用mysqldump备份时就要加--set-gtid-purged=OFF,否则在主上导入恢复了数据,主没有了binlog日志,同步则不会被同步。
边栏推荐
- WebGPU 导入[2] - 核心概念与重要机制解读
- 暂未找到具体原因但解决了的bug
- Data Middle Office: Started in Ali, Prosperous in DaaS
- HCIP第一天
- Shell变成规范与变量
- 7.联合索引(最左前缀原则)
- R language plotly visualization: plotly visualizes the scatter plot of the actual value of the regression model and the predicted value of the regression, analyzes the prediction performance of the re
- 知识点滴 - 为什么一般不用铜锅做菜
- redis-advanced
- Biotin-EDA|CAS:111790-37-5| 乙二胺生物素
猜你喜欢

研发过程中的文档管理与工具

PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案

52.【bool类型输入任何非0数值不为1的版本原因】

IO进程线程->进程->day4

牛客2022 暑期多校4 D Jobs (Easy Version)(递推优化策略)

多版本node的安装与切换详细操作

MySQL事务隔离级别详解

etcd实现大规模服务治理应用实战

A young man with strong blood and energy actually became a housekeeper. How did he successfully turn around and change careers?

Biotinyl Cystamine|CAS:128915-82-2|生物素半胱胺
随机推荐
ip地址那点事(二)
自定义table表格
Write a small game in C (three chess)
商业智能平台BI 商业智能分析平台 如何选择合适的商业智能平台BI
原型模式
Data Middle Office: Started in Ali, Prosperous in DaaS
@RequestParam使用
HCIP第二天
Flink 监控指南 被动拉取 Rest API
设置工作模式与环境(中):建造二级引导器
Biotin - LC - Hydrazide | CAS: 109276-34-8 | Biotin - LC - Hydrazide
WebForm DropDownList bind year and month respectively
[OC学习笔记]Block三种类型
如何建立私域流量?私域流量对企业有什么好处?
理论问题与工程问题的差异在哪里?
王学岗-编译出运行的文件
R language plotly visualization: plotly visualizes the scatter plot of the actual value of the regression model and the predicted value of the regression, analyzes the prediction performance of the re
图扑软件数字孪生油气管道站,搭建油气运输管控平台
JVM垃圾回收与性能调优方式
redis-advanced