当前位置:网站首页>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.
边栏推荐
- Matrix eigenvalue and eigenvector solution - eigenvalue decomposition (EVD)
- 跨境资讯站
- Learning Tai Chi Maker - mqtt Chapter II (IX) test of this chapter
- 字符串属性练习
- Which brokerage is safer and more convenient to open a stock account for big smart phones?
- CTFHub-Web-密码口令-默认口令
- What is the Valentine's Day gift given by the operator to the product?
- [redis] get to know redis for the first time
- Has Moore's law come to an end?
- Redis master-slave replication
猜你喜欢

如何用项目甘特图,做好项目汇报

Ctfhub web password default password

正则表达式(?:pattern)

What is the dry goods microservice architecture? What are the advantages and disadvantages?

Install kibana

MySQL的下载和安装

Programmers whose monthly salary is less than 30K must recite the interview stereotype. I'll eat it first

Trigonometric function calculation

Introduction to openresty

Koa 快速入门
随机推荐
项目研发,有哪些好用的免费脑图工具软件
【网络通信学习笔记】Socket.IO的搭建和部署
Pyinstaller打包pikepdf失败的问题排查
Eliminate the hover effect when the button is disabled
三角函数计算
mark
PHP的system函数
How to use project Gantt chart to make project report
安装mysql5.7 并修改密码
大智慧手机股票开户哪个券商更安全更方便?
字符串替换
[MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc
字符串长度
MySQL details - aggregation and grouping
What is Mipi
Google Borg paper
Exec function of PHP
[untitled]
Download and installation of MySQL
String attribute exercise