summaryrefslogtreecommitdiffstats
path: root/docker/filebin_starter.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2020-09-20 14:55:53 +0200
committerFlorian Pritz <bluewind@xinu.at>2020-09-20 14:55:53 +0200
commit80577e948a210e60e6738bf6ea3b0b391ab07b48 (patch)
tree9bfe71b540c1ec963d3fc06f8d88ed7d0526bbee /docker/filebin_starter.sh
parent3633a9d84c79d43cf5ae3c0237e038c2b1eb0e1d (diff)
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 <bluewind@xinu.at>
Diffstat (limited to 'docker/filebin_starter.sh')
-rwxr-xr-xdocker/filebin_starter.sh2
1 files changed, 1 insertions, 1 deletions
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,