I’m trying to connect to the YunoHost mysql database from an external application but without any success.
I need to connect some nocode apps to the database, and I was successfully when I connected application installed on the same server of YnH (NocoDB).
When I try from an external service it doesn’t work. I created an user and I gave access only to the database that I appositely created.
I tried to whitelist the IP of the external app in the
and to open the port 3306 in the firewall service (also restarted it).
Which are the best practices to make it works without compromising security?
Thanks a lot.
My YunoHost server
Hardware: online VPS (8gb of ram) YunoHost version: 11.2.9.1 (stable) I have access to my server : SSH, GUI Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no If yes, please explain:
By default MariaDB server is only bound to 127.0.0.1 as seen in /etc/mysql/mariadb.conf.d/50-server.cnf
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
Changing that is a major security risk and I would advise against doing so.
You could set up site to site VPS, although I’m not sure if that’s possible with apps in the current catalog.