Question

"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! :)

https://www.digitalocean.com/support/

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

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-20.html

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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.