Show
Ignore:
Timestamp:
10/05/07 20:57:53 (1 year ago)
Author:
anarcat
Message:

don't hardcode the mysql host, rely on alternc configuration, which resolves the problem of configuring phpmyadmin for remote mysqls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/etc/alternc/phpmyadmin.inc.php

    r2000 r2001  
    1515 */ 
    1616 
     17include_once('/var/alternc/bureau/class/local.php'); 
     18 
    1719$i = 1; 
    1820 
    19 $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address 
     21$cfg['Servers'][$i]['host']          = $L_MYSQL_HOST; // MySQL hostname or IP address 
    2022$cfg['Servers'][$i]['connect_type']  = 'tcp';    // How to connect to MySQL server ('tcp' or 'socket') 
    2123$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)? 
     
    2729 
    2830// Uncomment to override the default configuration 
    29 $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address 
     31$cfg['Servers'][$i]['host']          = $L_MYSQL_HOST; // MySQL hostname or IP address 
    3032$cfg['Servers'][$i]['connect_type']  = 'tcp';    // How to connect to MySQL server ('tcp' or 'socket') 
    3133$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?