I installed lxd --channel 4.0/stable, and i have 2 containers:
- ng-tst (with nginx and php-fpm)
- db (with mariadb)
From windows i can ssh into both.
With dbeaver i can connect to db and create databases and look at global variables:
- bind-address = 0.0.0.0
- port = 3306
The 2 containers can ping each other.
But when a php script in ng-tst wants to make a pdo connection with db, i get:
SQLSTATE[HY000]  MySQL server has gone away
I tried with host=ip and host=db.lxd, but same result.
I don’t know where to look, any pointers would be very welcome.