当前位置:网站首页>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.
边栏推荐
- Wechat applet custom component
- 2022.02.15
- 音响是如何把微弱声音放大呢
- QT basics tutorial: qstringlist
- Cross border information station
- Sysbench Pressure Test Oracle (installation and use examples)
- 【Redis】Hash类型
- Use code binding DataGridView control to display tables in program interface
- 對補wasm環境的一些測試
- Download and installation of MySQL
猜你喜欢

Use photoshop2022 to create a wonderful gradient effect for pictures
![[high concurrency, high performance and high availability of massive data MySQL practice-10] - Implementation of mvcc in InnoDB](/img/dc/a30ccd9943e668aef8c874980a4975.jpg)
[high concurrency, high performance and high availability of massive data MySQL practice-10] - Implementation of mvcc in InnoDB

Relationship between EMC, EMI and EMS

【Redis】Key的层级结构

项目研发,有哪些好用的免费脑图工具软件

SAP ui5 beginner tutorial 22 - development and use of filter

Target detection - ADAS practice

Oracle Recovery Tools实战批量坏块修复

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

CTFHub-Web-密码口令-默认口令
随机推荐
Junior final exam
KOA Quick Start
Prepare for the Blue Bridge Cup - double pointer, BFS
SystemVerilog structure (I)
e.target与e.currentTarget的区别
CTFHub-Web-SQL注入-整数型注入
fsockopen函数的应用
apache不解析PHP文件,直接显示源码
QT basics tutorial: qstringlist
[redis] list type
Studies of relative costs for development in different languages
Deploy redis high availability cluster
音响是如何把微弱声音放大呢
【无标题】
table通过伪类实现 另类自适应
String attribute exercise
centos7 安装php7.2
[sans titre]
Why should the pointer be null after delete
Smart world 2030