From 52037bf658e58777a4cca1d89260faa0e0498b19 Mon Sep 17 00:00:00 2001 From: startxfr Date: Tue, 28 Jun 2016 14:26:05 +0200 Subject: change in env --- Applications/phpmyadmin/config.inc.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Applications/phpmyadmin') 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. */ -- cgit v1.2.3