Report this

What is the reason for this report?

Local hot standby slave that can connect to a remote master (managed database)?

Posted on January 22, 2020

I would like to know if it is posible to configure a local hot standby slave that can connect to a remote master (managed database), since we can’t configure the config of a managed database, is there an alternative way to accomplish this.

I am developing a POS application, also I don’t have a reliable internet connection so when in offline mode I want to access my local database just for reading, until connection established.

Thanks in advance.



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.

Hello,

I believe that this would not be possible with the Managed MySQL Databases as you can not really make any direct changes to the configuration files and you do not have direct SSH access to the servers.

What I could suggest in this case is exporting your database on a regular basis, let’s say every 30 to 60 minutes and storing the SQL backup on your local machine, that way if your internet goes down you could import the latest SQL backup to your local SQL server and use locally.

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.