Is it possible to configure a managed MySQL database as a replication slave to an existing MySQL database?

I have an existing MySQL database running on a droplet that is already a slave to databases in the field. Our infrastructure currently depends on slave replication to acquire data.

I’d like to migrate to Managed Databases for simplicity, but it doesn’t look like the doadmin user has the replication admin permissions or the ability to grant replication admin permissions.

Am I missing anything or is it not possible to configure a Managed Database as a replication slave?

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 there @onefourfive,

I believe that what you need to do is to migrate your whole database solution to the Managed Database cluster directly. I don’t think that you can have your Managed Database cluster connected to another unmanaged replication setup, as to do that you essentially need superuser access, which you don’t get with managed solutions.

What I would do in this case is to migrate my existing data to the Managed Database cluster and then add read-only replicas. Then you can add and remove read-only replicas via your control panel with just a click of a button:

To migrate your datata, you could use the mysqldump tool. Example usage:

  1. mysqldump -h your_host -u your_user -p your_db_name > db-name.sql

However, for some extra performance I might sometimes use mysqlpump instead:

The syntax is quite similar:

  1. mysqlpump -h your_host -u your_user -p your_db_name > db-name.sql

Once you have the databased exported into a .sql file, you can import it with the mysql command into your Managed MySQL cluster.


  1. mysql -h your_host -u your_user -p your_db_name < db-name.sql

Once you’ve migrated your data, you will need to update your application/website’s connection strings so that it connects to the new Managed Database cluster and read-only nodes.

Hope that this helps! Regards, Bobby