ERPNext local Server with MariaDB Cloud

Hey, has anyone tried to install ERPNext on a local server with a cloud hosted MariaDB Server?

I’m planning to host ERPNext on a local server and host MariaDB on a digitalocean for redundancy reasons. Is it a good idea? Has anyone done this before? If yes, does setting the “host” as the server’s ip enough to point the db host to the ubuntu server?

Please look into this thread.