I’ve set up an OpenVPN connection between Windows machines, and it’s working fine so far. I can access shared folders, etc. One of the Windows machines is running a MariaDB instance, which I’d like to access from another client.
Yes, it’s certainly possible to access MariaDB over an OpenVPN connection, but just be aware that database performance can take a noticeable hit. Latency is usually the main bottleneck, especially with applications that make lots of small queries.
If this is something you’ll be doing regularly, you might want to consider WireGuard instead of OpenVPN. In many cases it offers lower latency and better throughput, which tends to make remote database access feel a bit snappier.