Best way to extend mysql database between two or more servers

I want a setup where I have a mysql server that is spread across more then one server, so then if I fill up one server it starts adding the rest of the database onto the next server and so on. What’s the best way to do this digital ocean and should I be hosting data such as lots of images and content on digital ocean?

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.

Hey there,

There are a few ways to think about this issue. You may be able to spread the database across multiple storage options in the near future, not necessarily separate servers. I wouldn’t recommend including the images into the database if you already plan on having a large database.

If you want to copy the database to multiple servers for redundancy, I would recommend reviewing this tutorial about database replication.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean