"Out of sort memory, consider increasing server sort buffer size" error on mysql managed db

I recently started using a managed DB and am getting the error “Out of sort memory, consider increasing server sort buffer size”. How would I go about altering the sort_buffer_size on a managed mysql instance?

I can’t seem to find anything in your docs about how you would update settings without having a my.cnf file.

Thanks, Ant

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.

Bobby Iliev
Site Moderator
Site Moderator badge
June 23, 2020
Accepted Answer

Hey @northerncyclist,

Indeed you are correct, as this is a managed solution you do not have access to the my.cnf file to make that change directly yourself.

However, please reach out to our amazing support team who will be more than happy to assist you and make this change for your Managed MySQL cluster! :)

Let me know if you have any other questions! Hope that helps! - Bobby.

I contacted Support. They told me this error “out of sort memory”, consider increasing server sort buffer size! is due to a bug with the new version of MySQL 8.20

They increased sort_buffer_size, and my new connections to db had no error.

Try DigitalOcean for free

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

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

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

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

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