Configure old phpMyAdmin version for autologin

This commit is contained in:
cytopia 2019-01-29 15:54:12 +01:00
parent 7a75f04952
commit 6caaea6b34
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -27,13 +27,21 @@ $i = 0;
* First server * First server
*/ */
$i++; $i++;
/* Authentication type */ /* Authentication type */
if (getenv('DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN') == 1) {
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = getenv('MYSQL_ROOT_PASSWORD');
} else {
$cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['auth_type'] = 'cookie';
}
/* Server parameters */ /* Server parameters */
$cfg['Servers'][$i]['host'] = 'mysql'; $cfg['Servers'][$i]['host'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE; $cfg['Servers'][$i]['AllowNoPassword'] = true;
/* Select mysql if your server does not have mysqli */ /* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['extension'] = 'mysqli';