-- purge 명령어로 binlog 삭제
purge binary logs to 'mysql-bin.000025';
PURGE BINARY LOGS BEFORE '2025-02-01 00:00:00';
-- binlog 보관주기 확인
show global variables like 'expire_logs_days';
set global expire_logs_days=3;
flush privileges;
-- 삭제 안 될시 warnings 확인
MariaDB [(none)]> show warnings\G
*************************** 1. row ***************************
Level: Note
Code: 1375
Message: Binary log 'mysql-bin.000001' is not purged because it is the current active binlog
1 row in set (0.000 sec)
-- slave_connections_needed_for_purge 설정 확인
show global variables like 'slave_connections_needed_for_purge';
set global slave_connections_needed_for_purge=0;
'MYSQL' 카테고리의 다른 글
[MariaDB] 계정 비밀번호 복잡도 변경 (0) | 2024.12.27 |
---|---|
[MariaDB] 통계수집 (0) | 2024.12.27 |
view 전체 쿼리 확인 (0) | 2024.09.10 |
Mysql Object 조회 (0) | 2024.06.27 |
ERROR 1064 (42000) (1) | 2024.06.27 |