[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>.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!