当前位置:网站首页>MySQL binlog log cleanup
MySQL binlog log cleanup
2022-06-29 02:31:00 【Jirenwang】
MySQL Connection number definition :
Number of operations performed per second (QPS, Company : Time / second )
Number of transactions executed per second (TPS, Company : Time / second )
View the current bin-log Log time deletes the data before a certain time period ( As before 7 The log of days is vip-binlog.000438)
ll /mysql/log/binlog/
11 month
10
13:00 vip-binlog.000434
11 month
11
06:10 vip-binlog.000438
11 month
12
06:10 vip-binlog.000439
- 1.
- 2.
- 3.
- 4.
Log in to the database to delete 7 Days ago log vip-binlog.000438
Check to see how many binlog
mysql> show binary logs;
Log_name | File_size
--
--
--
--
--
--
--
--
--
+
--
--
--
--
--
-
vip-binlog.000438 |
440508682
vip-binlog.000439 |
1073764380
--
--
--
--
--
--
--
--
--
+
--
--
--
--
--
-
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
binlog Processing command
clear vip-binlog.000438 Other previous logs ( Except before this log time )
mysql> purge binary logs to
'vip-binlog.000438';
- 1.
adopt bin-log Query data
mysqlbinlog
--base64
-output
=decode-rows
-r ezp-base-base64.log
-v ezp-base_binlog_mysqlbin.000164
-r ezp-base-base64.log Specify the makefile
- 1.
- 2.
Execute multiple log files
for i
in {141..329};
do mysqlbinlog
--base64
-output
=decode-rows
-v vip-binlog.000
$i|grep ed_rule_msg_wxopentemplet_base;
done
- 1.
see bin-log journal
ll /mysql/backup/backup-binlog
vip-binlog.000327
vip-binlog.000328
vip-binlog.000329
- 1.
- 2.
- 3.
- 4.
modify MySQL maximum connection
mysql
-u root
-p
View the current number of connections
show processlist;
show status like
'%connect%';
See the maximum number of connections
show variables like
'%max_connections%';
Set the maximum number of connections
set GLOBAL
max_connections
=
5000;
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
边栏推荐
- 跨境资讯站
- [high concurrency, high performance and high availability of massive data MySQL practice-10] - Implementation of mvcc in InnoDB
- The meaning of cross multiplication and dot multiplication (simple formula memory method)
- QT basics tutorial: data types and containers
- Google Borg论文
- Matrix eigenvalue and eigenvector solution - eigenvalue decomposition (EVD)
- Install mysql5.7 and change the password
- 正则表达式(?:pattern)
- MySQL details - aggregation and grouping
- Relationship between EMC, EMI and EMS
猜你喜欢

Sysbench Pressure Test Oracle (installation and use examples)
![[redis] list type](/img/c7/adec2aaea50d69a0aed95bfe683b9e.png)
[redis] list type

【Redis】SortedSet类型

EMC、EMI、EMS的关系

leetcode 统计无向图中无法互相到达点对数

The thinkphp5.1 runtime file has been changed to 777 permission, but cannot be written

目标检测——ADAS实战

"The first share of endoscope" broke into IPO two times. Last year, it lost 500million yuan. The commercialization of core products is still in doubt | IPO Express

Learning Tai Chi Maker - mqtt Chapter II (IX) test of this chapter

Zhongyi technology resumed the review status of the gem IPO, and xuxiaofei no longer acted as a practicing lawyer
随机推荐
Google Borg论文
Examen final de troisième année
[redis] hash type
Apache does not parse PHP files, but directly displays the source code
SystemVerilog-结构体(一)
e. Difference between target and e.currenttarget
高并发的理解与设计方案
短视频平台常见SQL面试题,你学会了吗?
Table implements alternative adaptation through pseudo classes
Koa quick start
PHP system function
Relations EMC, EMI, EMS
centos7 安装php7.2
thinkphp5.1 runtime文件改成777权限了, 还是无法写入
[redis] sortedset type
Set set
Has Moore's law come to an end?
字符串属性练习
Use photoshop2022 to create a wonderful gradient effect for pictures
fsockopen函数的应用