Question

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

Posted January 22, 2020 272 views
DigitalOcean Managed PostgreSQL Database

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.

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.

×
1 answer

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

Submit an Answer