Report this

What is the reason for this report?

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

Posted on February 5, 2020

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?


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.

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:

https://www.digitalocean.com/community/questions/how-to-tweak-mysql-mariadb-configuration-for-increased-performance-and-stability

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:

https://www.digitalocean.com/docs/databases/mysql/how-to/import-databases/

Hope that this helps! Regards, Bobby

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.