当前位置:网站首页>Journal MySQL
Journal MySQL
2022-07-01 13:48:00 【Petit programme singe CCC】
redologEtbinlog
- redolog- Oui.innodbAutoportante,binlog- Oui.mysqlAutoportante
- redologC'est comme un tampon,Écrivez les informations de la transaction dans ce tampon,C'est bon.redologLa base de données peut s'écraser et redémarrer les données sans perte,innodb_flush_log_at_trx_commitSet to1Les transactions peuvent être maintenues sur le disque à chaque fois,innodb_log_buffer_sizeEst la taille du cache
- binlogC'est le Journal des modifications logiques,sync_binlogSet to1C'est garanti.binlogNon.
- Passage chronométrémysqldumpSauvegarde de la base de données,SelonbinlogPériode de récupération des données
mysqldump
- mysqldump -u root -p --databases xx xxx xx > xx.sql Enregistrer plusieurs bases de données
- mysqldump -u root -p aaa bbb > xx.sql aaaDe la bibliothèquebbbTableau
- mysqldump -u root -p --no-data Tant que la structure de la table
binlog
- show variables like ‘%bin%’ VoirbinlogOn
- Si ce n'est pas ouvertmy.cnfDemysqldPlus baslog_bin=mysql-bin
- show binlog events in ‘mysql-bin.00000x’; Voirbinlog
- mysqlbinlog binlogChemin complet -d Nom de la base de données --skip-gtids --start-position=Numéro de série --stop-position=Numéro de série > xx.sql binlogConvertir en équivalentsql
- –start-datetime,–start-positionEt–stop-positionSont des paramètres optionnels
- binlogDivisé en3Mode d'enregistrement des espèces,statement,rowEt mixed
- statement:Enregistrer Nativesql, Il est possible que l'exécution maître - esclave soit incohérente ,Non recommandé
- row:Enregistrer les informations,Exécutésql Les données sont volumineuses.
- mixed: Mélanger les deux côtés supérieurs ,Simysql Utiliser s'il n'y a pas d'incohérence statementEnregistrement, Trop de données utilisées rowEnregistrement
undolog
- Enregistrer l'opération inverse , Utilisé pour faire reculer la cohérence
边栏推荐
- 面试题目总结(1) https中间人攻击,ConcurrentHashMap的原理 ,serialVersionUID常量,redis单线程,
- 开源者的自我修养|为 ShardingSphere 贡献了千万行代码的程序员,后来当了 CEO
- MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review
- [NLP] pre training model - gpt1
- [Jianzhi offer] 54 The k-th node of binary search tree
- 小程序- view中多个text换行
- Fiori applications are shared through the enhancement of adaptation project
- “国防七子”经费暴增,清华足足362亿元,甩第二名101亿 |全国高校2022预算大公开...
- Qtdeisgner, pyuic detailed use tutorial interface and function logic separation (nanny teaching)
- [安网杯 2021] REV WP
猜你喜欢

AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集

6年技术迭代,阿里全球化出海&合规的挑战和探索

Learning to use livedata and ViewModel will make it easier for you to write business

App automation testing Kaiyuan platform appium runner

Dragon lizard community open source coolbpf, BPF program development efficiency increased 100 times

Anti fraud, refusing to gamble, safe payment | there are many online investment scams, so it's impossible to make money like this

当你真的学会DataBinding后,你会发现“这玩意真香”!

Etcd summary mechanism and usage scenarios
![[安网杯 2021] REV WP](/img/98/ea5c241e2b8f3ae4c76e1c75c9e0d1.png)
[安网杯 2021] REV WP

9. Use of better scroll and ref
随机推荐
Leetcode第一题:两数之和(3种语言)
Benefiting from the Internet, the scientific and technological performance of overseas exchange volume has returned to high growth
Go整合Logrus实现日志打印
一文读懂TDengine的窗口查询功能
Use of shutter SQLite
单工,半双工,全双工区别以及TDD和FDD区别
QT community management system
介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案
2.15 summary
The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise
[anwangbei 2021] Rev WP
盲盒NFT数字藏品平台系统开发(搭建源码)
Spark source code reading outline
6. Wiper part
Understand the window query function of tdengine in one article
leetcode 322. Coin Change 零钱兑换(中等)
Global and Chinese silicone defoamer production and marketing demand and investment forecast analysis report Ⓨ 2022 ~ 2027
A new book by teacher Zhang Yujin of Tsinghua University: 2D vision system and image technology (five copies will be sent at the end of the article)
当你真的学会DataBinding后,你会发现“这玩意真香”!
【 剑指 Offer】55 - I. 二叉树的深度