Database Reference
In-Depth Information
Multi-server configuration
The config.inc.php file contains at least one server-specific section; however, we
can add more, enabling a single copy of phpMyAdmin to manage many servers. Let
us see how to configure more servers.
Servers defined in the configuration file
In the server-specific sections of the config.inc.php file, we see lines referring to
$cfg['Servers'][$i] for each server. Here, the variable $i is used so that one can
easily cut and paste whole sections of the configuration file to configure more servers.
While copying such sections, we should take care that the $i++; instruction, which
precedes each section and is crucial to delimit the server sections, is also copied.
Then, at the end of the sections, the following line controls what happens at startup:
$cfg['ServerDefault'] = 1;
The default value, 1 , means that phpMyAdmin will connect by itself to the first
server defined or present this server choice by default when using advanced
authentication (more on this later in this chapter). We can specify any number, for
the corresponding server-specific section. We can also enter the value 0 , signifying
no default server.
This configuration can also be done via web-based setup. Given here is an example
of a multi-server definition, with the default server being set to let the user choose .
 
Search WWH ::




Custom Search