当前位置:网站首页>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日志,同步则不会被同步。
边栏推荐
- 设置 height: auto 却无法触发 transition 动画的解决方案
- OneNote 教程,如何在 OneNote 中创建更多空间?
- Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
- Control 'ContentPlaceHolder1_ddlDepartment' of type 'DropDownList' must be placed inside a form tag with runat=server.
- The custom table form
- HCIP 第十二天
- R language plotly visualization: use the plotly visualization model to predict the true positive rate (True positive) TPR and false positive rate (False positive) FPR curve under different thresholds
- 研发过程中的文档管理与工具
- 近期在SLAM建图和定位方面的进展
- Application and case analysis of CASA model and CENTURY model
猜你喜欢
血气方刚的年轻小伙竟去做家政小哥,是怎样成功逆袭转行的
[Unity3D] Beginner Encryption Skills (Anti-Cracking)
CASA模型、CENTURY模型应用与案例分析
HCIP 第六天
PanGu-Coder: A function-level code generation model
BGP solves routing black hole through MPLS
HCIP第三天
Biotin-LC-Hydrazide|CAS:109276-34-8|生物素-LC-酰肼
IO process thread -> process -> day4
[OC学习笔记]weak的实现原理
随机推荐
Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin
HCIP第二天
OSPF 综合实验
优炫数据库的逻辑复制怎么样?
flutter 自己写一个组件
.NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
小说里的编程 【连载之二十三】元宇宙里月亮弯弯
R语言plotly可视化:使用plotly可视化模型预测真阳性率(True positive)TPR和假阳性率(False positive)FPR在不同阈值(threshold)下的曲线
按键控制流水灯(计时器)
HCIP第一天
设置 height: auto 却无法触发 transition 动画的解决方案
构建Flink第一个应用程序
sql创建表格 如图 运行完提示invalid table name 是什么原因
IO process thread -> process -> day4
Biotinyl Cystamine|CAS:128915-82-2|生物素半胱胺
学习笔记(8)DOM
RIP综合实验
Application and case analysis of CASA model and CENTURY model
MySQL压缩包方式安装,傻瓜式教学
PostgreSQL学习总结(11)—— PostgreSQL 常用的高可用集群方案