How to connect my local machine database to a cloud-host Metabase?

I'm now using the Metabase Pro Cloud and I want to add my MariaDB from my local machine to cloud-host but it didn't work.

I have tried to enter some IP addresses, like: localhost, 127.0.0.1, ... but it said the IP is incorrect.

What IP should I enter?

Stop! Honestly, if you don't understand why using 127.0.0.1 (locahost) won't work, then you need to get some proper help.
This is going to involve opening your firewall. If you do that wrong, you'll have more problems than connecting Metabase.

@AndrewMBaines
I did whitelist IP addresses (singapore region) but nothing happened. I still not connect my database.

No. You won't be able to.
Get someone who knows what they're doing to configure it for you.

This is a strange way to connect your local to your cloud instance I would say.

However, should you wish to continue, you could use a tunnel to e.g ngrok.

The tunnel will give you a URL that you can then use on metabase.

I haven't tested this myself, so all of this is theoretical. Here is a link that can help:

Another option might be to deploy a metabase instance on your local machine using Docker for example. This solves all the headache of proxying or tunnel.

I hope this helps