Question

How do i set up expire_logs_days=7 in DO? Is it even possible?

By default expire_logs_days is set to 0 in my DigitalOcean SQL database.

When executing “set global expire_logs_days=7;” command in MySQL Workbench i get an error “Error Code: 1227. Access denied; you need (at least one of) the SUPER or SYSTEM_VARIABLES_ADMIN privilege(s) for this operation”

How can i get those permissions or is there any other way to change expire_logs_days value?


Submit an answer
Answer a question...

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.

KFSys
Site Moderator
Site Moderator badge
December 21, 2022

Hi @arseniyaxolotl,

Unfortunately, the expire_logs_days variable is not something you can edit on the Managed Database platform. As a Managed Database, you don’t have full administrator access to it and similar values such as the expire_logs_days can’t be changed.

If you wish to see which values you can change/adjust, you can check the following API page:

https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_patch_config

Bobby Iliev
Site Moderator
Site Moderator badge
December 21, 2022

Hi there,

The expire_logs_days value is not configurable for the Managed MySQL database clusters.

You can change only the following fields listed in the API documentation here:

https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_patch_config

Can you confirm why do you need that specific value adjusted?

Best,

Bobby