Hello, I’m trying to connect my website hosted on Infinity Free to an external MySQL database (Aiven). The connection works perfectly locally, but when I try to connect in the production environment (Infinity Free), I get the error above.
That’s not necessarily the case. Even a database server that is accessible from other networks can (and often should) have rules that restrict from which IP addresses the database server is accessible. If your database server allows connection from your Minecraft server, but not from your hosting server, you still wouldn’t be able to access it.
I’ve asked our supplier about this and they say that access to remote database servers should be possible, although I didn’t actually verify yet whether it actually works.