From 80577e948a210e60e6738bf6ea3b0b391ab07b48 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 20 Sep 2020 14:55:53 +0200 Subject: docker: Fix database error during initial migration The following error was shown during initial startup of the container and the database was obviously not initialized because of this. I'm not sure why it happens, but setting the database name in the config (in addition to the name in the PDO connection string) fixes the problem. > Database error: A Database Error Occurred > > Error Number: 42000/1102 > Incorrect database name '' > SHOW TABLES FROM `` > Filename: libraries/Migration.php > Line Number: 167 Signed-off-by: Florian Pritz --- docker/filebin_starter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/filebin_starter.sh b/docker/filebin_starter.sh index 66f9a8b03..2fecc3fe3 100755 --- a/docker/filebin_starter.sh +++ b/docker/filebin_starter.sh @@ -41,7 +41,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 'port' => 3306, 'username' => '${FB_DB_USERNAME}', 'password' => '${FB_DB_PASSWORD}', - 'database' => '', + 'database' => '${FB_DB_DATABASE}', 'dbdriver' => 'pdo', 'dbprefix' => '', 'pconnect' => FALSE, -- cgit v1.2.3-24-g4f1b