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.

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.