Databases Reference
In-Depth Information
Starting with phpMyAdmin 2.6.0, there is another configuration file:
layout.inc.php . As this version offers theme management, this file contains
the theme-specific colors and settings. There is one layout.inc.php per theme,
located in themes/themename , for example, themes/original . We will cover the
modification of some of those parameters in Chapter 4 under the First Steps section.
PmaAbsoluteUri
The first parameter to have a look at is $cfg['PmaAbsoluteUri'] = '';
In most cases we can leave this one empty, as phpMyAdmin tries to auto-detect the
correct value. If we browse a table later and then edit a row and click Save , we will
receive an error message from our browser - for example, This document does not
exist . This means that the absolute URI that phpMyAdmin built in order to reach the
intended page was wrong, indicating that we must manually put the correct value in
this parameter.
For example, we would change it to:
$cfg['PmaAbsoluteUri'] = 'http://www.mydomain.com/phpMyAdmin_2.8.2/';
Server-Specific Sections
The next section of the file contains server-specific configurations, each starting with:
$i++;
$cfg['Servers'][$i]['host'] = '';
If we examine only the normal server parameters (other parameters will be covered
starting with Chapter 11), we see a section like the following for each server:
$i++;
$cfg['Servers'][$i]['host'] = '';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['only_db'] = '';
 
Search WWH ::




Custom Search