Skip to main content

Command Palette

Search for a command to run...

How to Enable bin_log in AWS RDS

Published
•2 min read•View as Markdown
How to Enable bin_log in AWS RDS

How to Enable bin_log in AWS RDS

To enable binary logs in RDS, you need to activate automated backups. Once automated backups are enabled, RDS will automatically activate binary logs to support PITR (Point-in-Time Recovery) and replication.

Here are the steps:

Enable Automated Backups:

  1. Go to the RDS console.
  2. Select the relevant DB instance.
  3. Click the Modify button.
  4. In the backup options, enable the Enable automated backups option. Set the Backup Retention Period. If this value is greater than 0, automated backups will be enabled.

Restart the DB Instance:

  1. Save the changes and restart the DB instance. Once automated backups are enabled, RDS will automatically activate log_bin. Although this is not directly visible to the user, binary logs are internally enabled.

Additional Considerations

  • In RDS, you cannot finely control binary log settings, as they are only used for replication and PITR.
  • If you require full control, consider setting up MySQL directly on an EC2 instance.

Given these limitations in the AWS RDS environment, you may need to either configure MySQL on an EC2 instance for full control or use the built-in features of RDS to address your needs.

How to check MySQL Configuration Values (SHOW VARIABLES)

To check the configured variables in MySQL, you can use the SHOW VARIABLES command.

SHOW VARIABLES LIKE 'log_bin';
 log_bin      ON

Please refer to the guide document below for MySQL CDC configuration!

https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html

More from this blog

AI 시대에도 좋은 엔지니어로 성장하기

나의 업무 원칙 AI 시대에도 좋은 엔지니어로 성장하기 AI가 개발과 업무 전반에 깊숙이 들어오면서 생산성은 빠르게 높아지고 있다. 예전에는 몇 시간씩 걸리던 조사, 코드 작성, 테스트 작성, 문서화 같은 일을 이제는 AI와 함께 훨씬 짧은 시간에 끝낼 수 있다. 이 변화는 분명 기회다. 하지만 한편으로는 경계해야 할 부분도 있다. AI에게 코드를 작성하게

Aug 30, 202615 min read
H

HyeongSu

14 posts