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


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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.