[SOLVED] [P] Access DB service from outside LXC container

cmonty14

Well-Known Member
Mar 4, 2014
343
5
58
Hi!

I have installed MariaDB in LXC container.
This is supposed to be a dedicated DB server hosting multiple databases for different applications, e.g. OpenMediaVault, owncloud, etc.

However, I cannot access the DB from outside of the container. The client reports a connection failure.

I assume this is related to the container config as SSH is not working either.

How can I open a database connection to the container?
Please advise.

THX
 
Last edited:
Nope.
The clients are not necessarily on the same host server.
Actually I tested only from another PC that belongs to the same network.
From this PC I can ping the container, but I can't connect to a service like mysql or ssh.
 
Nope.
The clients are not necessarily on the same host server.
Actually I tested only from another PC that belongs to the same network.
From this PC I can ping the container, but I can't connect to a service like mysql or ssh.

do you use proxmox firewall ? or another firewall somewhere between client and lxc container ?

(if ping is working, it should work for other protocols)
 
No.
But I fixed the DB access by modifying config file /etc/mysql/my.cnf and setting parameter bind = <ip address>.