当前位置:网站首页>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
边栏推荐
- Several models of IO blocking, non blocking, IO multiplexing, signal driven and asynchronous IO
- 2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
- JVM有哪些类加载机制?
- 6年技术迭代,阿里全球化出海&合规的挑战和探索
- 关于佛萨奇2.0“Meta Force原力元宇宙系统开发逻辑方案(详情)
- 孔松(信通院)-数字化时代云安全能力建设及趋势
- Collation and review of knowledge points of Microcomputer Principle and interface technology - pure manual
- 【Flask】Flask启程与实现一个基于Flask的最小应用程序
- C语言基础知识
- A Fletter version of Notepad
猜你喜欢

Liu Dui (fire line safety) - risk discovery in cloudy environment

Kongsong (Xintong Institute) - cloud security capacity building and trend in the digital era

A Fletter version of Notepad

清华章毓晋老师新书:2D视觉系统和图像技术(文末送5本)

详细讲解面试的 IO多路复用,select,poll,epoll

Several models of IO blocking, non blocking, IO multiplexing, signal driven and asynchronous IO

MySQL六十六问,两万字+五十图详解!复习必备

分布式事务简介(seata)

洞态在某互联⽹⾦融科技企业的最佳落地实践

French Data Protection Agency: using Google Analytics or violating gdpr
随机推荐
Global and Chinese polypropylene industry prospect analysis and market demand forecast report Ⓝ 2022 ~ 2027
网络中的listen
Solution to 0xc000007b error when running the game [easy to understand]
Station B was scolded on the hot search..
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
leetcode 322. Coin change (medium)
【IoT毕设.上】STM32+机智云AIoT+实验室安全监控系统
Etcd 概要 机制 和使用场景
MySQL六十六问,两万字+五十图详解!复习必备
程序设计的基本概念
Machine learning summary (I): linear regression, ridge regression, Lasso regression
User defined annotation realizes the function of verifying information
Anti fraud, refusing to gamble, safe payment | there are many online investment scams, so it's impossible to make money like this
Word2vec training Chinese word vector
About fossage 2.0 "meta force meta universe system development logic scheme (details)
二传感器尺寸「建议收藏」
SAP intelligent robot process automation (IRPA) solution sharing
Global and Chinese silicone defoamer production and marketing demand and investment forecast analysis report Ⓨ 2022 ~ 2027
焱融看 | 混合云时代下,如何制定多云策略
minimum spanning tree