Question

How to access the binary log of a Managed MySQL database?

Hello, I’m just starting with a managed MySQL database and I’m wondering if it has the binary log feature enabled and if there is a way to access it somehow?

Binary log documentaion: https://dev.mysql.com/doc/refman/8.0/en/binary-log.html


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

Yes, it is enabled:

mysql> show variables like 'log_bin';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_bin       | ON    |
+---------------+-------+
1 row in set (0.00 sec)

I think that it is necessary for the MySQL replication and it is used by the read-only replicas. However, I don’t believe that you would be able to access them as this is a managed service.

Is there a particular reason why you need to access the bin logs?

Regards, Bobby