don't hardcode the mysql host, rely on alternc configuration, which resolves the problem of configuring phpmyadmin for remote mysqls
This commit is contained in:
parent
91d8878aef
commit
a2b26cb820
|
@ -14,9 +14,11 @@
|
|||
* /etc/phpmyadmin/config.inc.php
|
||||
*/
|
||||
|
||||
include_once('/var/alternc/bureau/class/local.php');
|
||||
|
||||
$i = 1;
|
||||
|
||||
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
|
||||
$cfg['Servers'][$i]['host'] = $L_MYSQL_HOST; // MySQL hostname or IP address
|
||||
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
|
||||
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
|
||||
$cfg['Servers'][$i]['user'] = $_COOKIE["REMOTE_USER"]; ; // MySQL user
|
||||
|
@ -26,7 +28,7 @@ $cfg['Servers'][$i]['password'] = $_COOKIE["REMOTE_PASSWORD"]; ; /
|
|||
$i++;
|
||||
|
||||
// Uncomment to override the default configuration
|
||||
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
|
||||
$cfg['Servers'][$i]['host'] = $L_MYSQL_HOST; // MySQL hostname or IP address
|
||||
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
|
||||
|
||||
|
|
Loading…
Reference in New Issue