Report this

What is the reason for this report?

MySql configuration file my.cnf. ideal setup for 256 and 512Mb on Ubuntu ???

Posted on November 7, 2012

In order to avoid databases crashes or overloads. Which is the ideal configuration of the my.cnf file of the mysql database, for 256 or 512Mb memory sizes hostings running Ubuntu,



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!

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.

Read this post http://digitaloceanvps.blogspot.com/2014/04/best-configuration-for-512mb-1gb-ram.html <br> <br>it works well with my 512mb vps using wordpress

And do not forget about

[mysqld]
performance_schema = OFF

Seems, like starting from 5.6 it is enabled by default. And it is killer of all mem-optimizations inside 512Mb box)))

I believe joomla does include table indexes by default. <br> <br>If you already have SWAP setup and then MySQL should not be crashing out because it should first use up swap. <br> <br>How much swap space did you add and how much is being used when everything is running normally?

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.