当前位置:网站首页>数据库日志级别解析:(2022.2.21-2022.2.27)
数据库日志级别解析:(2022.2.21-2022.2.27)
2022-04-21 06:35:00 【看水是水】
数据库的日志种类有:redo_log,undo_log,binlog,rely_log,error_log,slow_query_log,general_log;
redo_log:重做日志,保证了事务的持久性,一般事务开启的时候,重做日志也启动了,持久化的三种方式分别为:1.每一秒进行持久化;
2.每一次commit的时候进行持久化;3.默认的为占用剩余内存空间一半的时候自动持久化;
undo_log:回滚日志,保证了事务的原子性和隔离性,在事务执行失败或者回滚的时候,就会启动该日志,进行相反的sql操作,如开始的
insert就变成delete,delete就变为insert,update就执行相反的update;
binlog:二进制日志,两种使用场景;第一种的作用类似于redo_log,但是需要每次commit的时候才会进行持久化;第二种是在主从同
步中使用到的,在主从同步中,从库复制的是主库的二进制日志binlog文件;
rely_log:中继日志,使用场景就是主从同步中的,从库复制的主库的二进制日志文件到从库本身的中继日志中,再将中继日志文件复制
到自身的从库当中;
error_log: 错误日志,开启后可以查询sql执行错误的日志;
slow_query_log: 慢查询日志,开启之后,可以查询sql中执行性能较低的语句;
general_log: 一般查询日志,默认是关闭状态,主动开启之后,将会记录的所有sql操作记录,比较占用内存,性能较差,看情况决定;
版权声明
本文为[看水是水]所创,转载请带上原文链接,感谢
https://blog.csdn.net/yuhuochongsheng_/article/details/123971313
边栏推荐
- 文件系统结构分析与数据恢复
- File system structure analysis and data recovery
- 线程安全的类的解析:(2.8-3.6)
- 2020-12-24
- Information encryption and information summarization
- JS different time format conversion
- Convergencewarning: linear failed to converge, increase the number of iterations
- 排序方式(1)==>冒泡排序,简单的选择排序
- NP、OSPF 故障排除
- 2020-12-24
猜你喜欢

利用WireShark将pcap数据流还原图片文件

Nmap扫描和Scapy项目

Convergencewarning: linear failed to converge, increase the number of iterations

OSPF多区域

Macro crystal micro ms9288, analog RGB (VGA) to HDMI, HDMI transmitter, audio decoder, built-in MCU

【无标题】国腾GM系列,GM8284DD(GM8284DR,LT8218A)、 GM8285C、GM7123C,LVDSTTL转TTL,TTL转成单路LVDS,TTL数字信号转换成VGA

Voisins bgp

BGP 认证功能

【WPF】VisualStateManager

PIM-DM
随机推荐
利用安全漏洞检测工具Metasploit对靶机Metasploitable2的Telnet登录提权
NP, OSPF stub area
三层交换机与路由器对接上网
数据库死锁总结:(3.7-3.13)
NP、OSPF 缺省路由
链表(C语言)
蕊源RY8132、RY9140 DCDC主要替换:TI的TPS563200、TPS563201,芯源的MP1471、MP1653,矽力杰的SY8104电源芯片详细资料
IPV4-IGP
Echars thermal map custom colors
Guanghuaxin audio codec Daquan cjc4344, cjc8988, cjc5340, cjc6811 guanghuaxin audio codec, cjc4344, cjc8988, cs5340
蓝桥杯——数列排序问题
Blue Bridge Cup -- conversion between hexadecimal and decimal
BGP authentication function
NP、OSPF Stub區域
计算机漏洞安全相关的概念POC 、EXP 、VUL 、CVE 、0DAY
Detailed explanation of the whole evolution process and architecture design of large websites
金融信息安全实训——22/4/18
Sort method (2) = > insert sort
排序方式(2)==>插入排序
关于多线程