summaryrefslogtreecommitdiffstats
path: root/Applications/phpmyadmin
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/phpmyadmin')
-rw-r--r--Applications/phpmyadmin/config.inc.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/Applications/phpmyadmin/config.inc.php b/Applications/phpmyadmin/config.inc.php
index d7411ba..110f2aa 100644
--- a/Applications/phpmyadmin/config.inc.php
+++ b/Applications/phpmyadmin/config.inc.php
@@ -35,7 +35,6 @@ if(getenv('MARIADB_ENV_MYSQL_USER') != '') {
$cfg['Servers'][$i]['password'] = getenv('MARIADB_ENV_MYSQL_PASSWORD');
}
-
if(getenv('MARIADB2_ENV_MYSQL_USER') != '') {
$i++;
$cfg['Servers'][$i]['extension'] = 'mysqli';
@@ -45,6 +44,16 @@ if(getenv('MARIADB2_ENV_MYSQL_USER') != '') {
$cfg['Servers'][$i]['user'] = getenv('MARIADB2_ENV_MYSQL_USER');
$cfg['Servers'][$i]['password'] = getenv('MARIADB2_ENV_MYSQL_PASSWORD');
}
+
+if(getenv('DB_ENV_MYSQL_USER') != '') {
+ $i++;
+ $cfg['Servers'][$i]['extension'] = 'mysqli';
+ $cfg['Servers'][$i]['auth_type'] = 'config';
+ $cfg['Servers'][$i]['host'] = getenv('DB_PORT_3306_TCP_ADDR');
+ $cfg['Servers'][$i]['port'] = getenv('DB_PORT_3306_TCP_PORT');
+ $cfg['Servers'][$i]['user'] = getenv('DB_ENV_MYSQL_USER');
+ $cfg['Servers'][$i]['password'] = getenv('DB_ENV_MYSQL_PASSWORD');
+}
/**
* phpMyAdmin configuration storage settings.
*/