Question

Problems with large number of posts (Wordpress)

I have a Wordpress Blog with ~ 6K posts. In the past when I used a shared hosting, my hosting company said that I used too many CPU. They asked me optimized and indexed my database. I bought a clound hosting (512 MB memory) since few days.but some time when I connect to my blog, there is a error 'Error establishing a database connection", and I must restart mySQL. Did someone have the same issue ? Please help. Thank you


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Another option would be to optimize the my.cnf file so it uses less RAM, possibly limiting maximum concurrent connections and increasing some cache values.

thank you all !

It depends on the site’s load really. Try scaling up to 1GB and load-testing the website (I personally recommend https://blitz.io) to see if that’s enough. You should also optimize the my.cnf file as sb73542 mentioned.