Question

How to downsize a droplet?

I’m trying to downsize my droplet.

I tried this article:

https://www.digitalocean.com/community/tutorials/how-to-downgrade-digitalocean-droplets

But doesn’t seem to work. It’s missing all the mysql data (and who knows what else).

Is there any reliable way to do this?


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.

Hello,

You can simply use the mysqldump command via ssh in order to export your databases and then copy them anywhere else (either locally or to another server) using scp or rsync.

The command will look like this:

  1. mysqldump -u [username] -p [database-you-want-to-dump] > [path-to-place-data-dump]

So it could be something like this:

  1. mysqldump -u root -p mydatabase > /home/myuser/database-dump.sql

You can check this article as well because everything is explained in detail:

https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb

The link for the downgrade might have changed so use the link below.

https://docs.digitalocean.com/products/droplets/resources/downsize/

Regards, Alex

I ended up getting this to work I had initially created the smallest $5 droplet. Everything seemed to copy over ok but I guess there weren’t enough resources. I updated to the next one up, rebooted and all worked like charm :-)