How can I increase the MySql memory on a wordpress with ubuntu droplet image

My website keeps going down because of MySql which is running on localhost does not have enough computing power to connect to the website. I have increased the ram by resizing the database but that only worked for a day. I have created a database cluster with DO and once I can get into the database on localhost I will migrate it.

My questions are:

  1. How do I increase the memory limit for the database on localhost?
  2. How do I download the database and then upload it to the managed cluster on DO?

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.

Hi @shehethey,

I recently posted an answer on how to use mysqltunner in order to optimize your MySQL database, you can take a look at the instructions here:

Regarding the migration of your database to a Managed MySQL Database, you could either use a tool like DBever or mysqldump in order to backup your database first and then import it to your Managed MySQL Database:

Hope that this helps! Regards, Bobby