AWS

RDS mysql, mariadb binlog 유지기간 설정

뱀고기* 2018. 3. 23. 11:00

기존 설정 보는법

mysql> call mysql.rds_show_configuration;
+------------------------+-------+------------------------------------------------------------------------------------------------------+
| name                   | value | description                                                                                          |
+------------------------+-------+------------------------------------------------------------------------------------------------------+
| binlog retention hours | NULL  | binlog retention hours specifies the duration in hours before binary logs are automatically deleted. |
+------------------------+-------+------------------------------------------------------------------------------------------------------+
1 row in set (0.06 sec)

Query OK, 0 rows affected (0.06 sec)


변경방법

call mysql.rds_set_configuration('binlog retention hours', 24);

24는 24시간을 의미