Closed whlsxl closed 5 months ago
dbhost
is set only for autoconfig on first installation: https://github.com/crazy-max/docker-nextcloud/blob/c9a16f5914faae0f36caaea0290d41cbe8914f37/rootfs/etc/cont-init.d/03-config.sh#L181
See https://github.com/crazy-max/docker-nextcloud#first-installation
If you need to change this value after first installation, you need to edit the configuration in /data/config.php
.
Support guidelines
I've found a bug and checked that ...
Description
nextcloud doc didn't mention all possible
dbhost
formats, according to the nextcloud/server code, Nextcloud will check thedbport
&dbhost
configuration to determine the database configuration.dbhost => "127.0.0.1:3306"
dbhost => "127.0.0.1" & dbport => 3306
dbhost => "unix:/run/mysqld/mysqld.sock"
All of these configuration formats are accepted and recognized by Nextcloud.
Expected behaviour
accept
DB_HOST
:192.168.1.1:3306
Actual behaviour
database connection check failed.
Steps to reproduce
set
DB_HOST
:192.168.1.1:3306
Docker info
Docker Compose config
No response
Logs