Patch #542421 - dynamic server numbers in config file
This commit is contained in:
@@ -16,6 +16,8 @@ $Source$
|
|||||||
* db_stats.php3; left.php3; libraries/display_tbl.lib.php3: the valid xhtml
|
* db_stats.php3; left.php3; libraries/display_tbl.lib.php3: the valid xhtml
|
||||||
attribute to display the "tool tip" of an image is "title" and not "alt".
|
attribute to display the "tool tip" of an image is "title" and not "alt".
|
||||||
* libraries/display_tbl.lib.php3, lines 574 & 578: use localized strings.
|
* libraries/display_tbl.lib.php3, lines 574 & 578: use localized strings.
|
||||||
|
* config.inc.php3; Documentation.*: merged patch #542421 - dynamic server
|
||||||
|
numbers in config file.
|
||||||
|
|
||||||
2002-04-12 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2002-04-12 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* libraries/display_tbl.lib.php3, lines 957-991: expended cosmetic changes
|
* libraries/display_tbl.lib.php3, lines 957-991: expended cosmetic changes
|
||||||
|
@@ -276,8 +276,8 @@
|
|||||||
& "Timestamp") </i>tables.<br />
|
& "Timestamp") </i>tables.<br />
|
||||||
You must specify the details for the controluser in the
|
You must specify the details for the controluser in the
|
||||||
<i>config.inc.php3</i> file under the
|
<i>config.inc.php3</i> file under the
|
||||||
<tt>$cfgServers[n]['controluser']</tt> &
|
<tt>$cfgServers[$i]['controluser']</tt>&
|
||||||
<tt>$cfgServers[n]['controlpass']</tt> settings.<br />
|
<tt>$cfgServers[$i]['controlpass']</tt> settings.<br />
|
||||||
This example assumes you want to use <tt>pma</tt> as the controluser
|
This example assumes you want to use <tt>pma</tt> as the controluser
|
||||||
and <tt>pmapass</tt> as the controlpass:<br />
|
and <tt>pmapass</tt> as the controlpass:<br />
|
||||||
<table border="0">
|
<table border="0">
|
||||||
@@ -339,10 +339,10 @@
|
|||||||
<p><b>'config' authentication mode:</b></p>
|
<p><b>'config' authentication mode:</b></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>This mode is the less secure one because it requires you to fill the
|
<li>This mode is the less secure one because it requires you to fill the
|
||||||
<tt>$cfgServers[n]['user']</tt> and <tt>$cfgServers[n]['password']</tt>
|
<tt>$cfgServers[$i]['user']</tt> and
|
||||||
fields.<br />
|
<tt>$cfgServers[$i]['password']</tt> fields.<br />
|
||||||
But you don't need to setup a "controluser" here:
|
But you don't need to setup a "controluser" here:
|
||||||
using the <tt>$cfgServers[n]['only_db']</tt> might be enough.<br />
|
using the <tt>$cfgServers[$i]['only_db']</tt> might be enough.<br />
|
||||||
In the ISP FAQ section, there is an entry explaining how to protect
|
In the ISP FAQ section, there is an entry explaining how to protect
|
||||||
your configuration file.<br /></li>
|
your configuration file.<br /></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -396,35 +396,36 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
Since version 1.4.2, phpMyAdmin supports the administration of multiple
|
Since version 1.4.2, phpMyAdmin supports the administration of multiple
|
||||||
MySQL servers.
|
MySQL servers.
|
||||||
Therefore, a $cfgServers-array has been added which contains the login
|
Therefore, a $cfgServers-array has been added which contains the login
|
||||||
information for the different servers. <tt>$cfgServers[1]['host']</tt>
|
information for the different servers. The first
|
||||||
contains the hostname of the first server,
|
<tt>$cfgServers[$i]['host']</tt> contains the hostname of the first
|
||||||
<tt>$cfgServers[2]['host']</tt> the hostname of the second server, etc.
|
server, the second <tt>$cfgServers[$i]['host']</tt> the hostname of the
|
||||||
|
second server, etc.
|
||||||
If you have only one server to administer, simply leave free the
|
If you have only one server to administer, simply leave free the
|
||||||
hostname of the other $cfgServer-entries.
|
hostname of the other $cfgServer-entries.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfgServers[n]['host']</b> string</dt>
|
<dt><b>$cfgServers[$i]['host']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
The hostname of your n-th MySQL-server. E.g. localhost.
|
The hostname of your $i-th MySQL-server. E.g. localhost.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfgServers[n]['port']</b> string</dt>
|
<dt><b>$cfgServers[$i]['port']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
The port-number of your n-th MySQL-server. Default is 3306 (leave
|
The port-number of your $i-th MySQL-server. Default is 3306 (leave
|
||||||
blank).
|
blank).
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfgServers[n]['socket']</b> string</dt>
|
<dt><b>$cfgServers[$i]['socket']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
The path to the socket to use. Leave blank for default.<br />
|
The path to the socket to use. Leave blank for default.<br />
|
||||||
To use the socket feature you must run php 3.0.10 or more.
|
To use the socket feature you must run php 3.0.10 or more.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfgServers[n]['connect_type']</b> string</dt>
|
<dt><b>$cfgServers[$i]['connect_type']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
What type connection to use with the MySQL server. Your options are
|
What type connection to use with the MySQL server. Your options are
|
||||||
'socket' & 'tcp'. It defaults to 'tcp' as that is nearly guarenteed
|
'socket' & 'tcp'. It defaults to 'tcp' as that is nearly guarenteed
|
||||||
@@ -434,8 +435,8 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
<b>$cfgServers[n]['controluser']</b> string<br />
|
<b>$cfgServers[$i]['controluser']</b> string<br />
|
||||||
<b>$cfgServers[n]['controlpass']</b> string
|
<b>$cfgServers[$i]['controlpass']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
When using http or cookie authentication modes (or 'config'
|
When using http or cookie authentication modes (or 'config'
|
||||||
@@ -459,7 +460,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfgServers[n]['auth_type']</b> string <tt>['http'|'cookie'|'config']</tt> </dt>
|
<dt><b>$cfgServers[$i]['auth_type']</b> string <tt>['http'|'cookie'|'config']</tt> </dt>
|
||||||
<dd>
|
<dd>
|
||||||
Whether config or cookie or http authentication should be used for this
|
Whether config or cookie or http authentication should be used for this
|
||||||
server.
|
server.
|
||||||
@@ -492,8 +493,8 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
<b>$cfgServers[n]['user']</b> string<br />
|
<b>$cfgServers[$i]['user']</b> string<br />
|
||||||
<b>$cfgServers[n]['password']</b> string
|
<b>$cfgServers[$i]['password']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
The user/password-pair which phpMyAdmin will use to connect to this
|
The user/password-pair which phpMyAdmin will use to connect to this
|
||||||
@@ -501,7 +502,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
authentication is used, and should be empty.<br /><br />
|
authentication is used, and should be empty.<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfgServers[n]['only_db']</b> string or array</dt>
|
<dt><b>$cfgServers[$i]['only_db']</b> string or array</dt>
|
||||||
<dd>
|
<dd>
|
||||||
If set to a(an array of) database name(s), only this(these) database(s)
|
If set to a(an array of) database name(s), only this(these) database(s)
|
||||||
will be shown to the user. Since phpMyAdmin 2.2.1, this/these
|
will be shown to the user. Since phpMyAdmin 2.2.1, this/these
|
||||||
@@ -518,7 +519,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfgServers[n]['verbose']</b> string</dt>
|
<dt><b>$cfgServers[$i]['verbose']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Only useful when using phpMyAdmin with multiple server entries. If set,
|
Only useful when using phpMyAdmin with multiple server entries. If set,
|
||||||
this string will be displayed instead of the hostname in the pulldown
|
this string will be displayed instead of the hostname in the pulldown
|
||||||
@@ -528,8 +529,8 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
<b>$cfgServers[n]['bookmarkdb']</b> string<br />
|
<b>$cfgServers[$i]['bookmarkdb']</b> string<br />
|
||||||
<b>$cfgServers[n]['bookmarktable']</b> string
|
<b>$cfgServers[$i]['bookmarktable']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Since release 2.2.0 phpMyAdmin allows to bookmark queries. This can be
|
Since release 2.2.0 phpMyAdmin allows to bookmark queries. This can be
|
||||||
@@ -552,8 +553,8 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
then complete the two variables
|
then complete the two variables
|
||||||
<tt>$cfgServers[n]['bookmarkdb']</tt> and
|
<tt>$cfgServers[$i]['bookmarkdb']</tt> and
|
||||||
<tt>$cfgServers[n]['bookmarktable']</tt> with the database and
|
<tt>$cfgServers[$i]['bookmarktable']</tt> with the database and
|
||||||
table names you've choosen so phpMyAdmin will be able to find
|
table names you've choosen so phpMyAdmin will be able to find
|
||||||
the bookmarks.
|
the bookmarks.
|
||||||
</li>
|
</li>
|
||||||
@@ -568,7 +569,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
<b>$cfgServers[n]['relation']</b> string
|
<b>$cfgServers[$i]['relation']</b> string
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Since release 2.2.4 you can describe, in a special 'relation' table,
|
Since release 2.2.4 you can describe, in a special 'relation' table,
|
||||||
@@ -606,7 +607,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
put the relation table name in
|
put the relation table name in
|
||||||
<tt>$cfgServers[n]['relation']</tt>
|
<tt>$cfgServers[$i]['relation']</tt>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
then manually fill the relation table with information about
|
then manually fill the relation table with information about
|
||||||
@@ -1201,7 +1202,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
open the connection. To do this in phpMyAdmin, you need to complete the
|
open the connection. To do this in phpMyAdmin, you need to complete the
|
||||||
socket information in the config.inc.php3.<br />
|
socket information in the config.inc.php3.<br />
|
||||||
For example:
|
For example:
|
||||||
<tt>$cfgServers[n]['socket'] = '/tmp/mysql.sock';</tt>
|
<tt>$cfgServers[$i]['socket'] = '/tmp/mysql.sock';</tt>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
@@ -1310,8 +1311,8 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<tt>$cfgServers[n]['controluser']</tt> and/or
|
<tt>$cfgServers[$i]['controluser']</tt> and/or
|
||||||
<tt>$cfgServers[n]['controlpass']</tt> are wrong.
|
<tt>$cfgServers[$i]['controlpass']</tt> are wrong.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
The username/password you specify in the login-dialog are invalid.
|
The username/password you specify in the login-dialog are invalid.
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
+ Version history: [2]ChangeLog
|
+ Version history: [2]ChangeLog
|
||||||
+ General notes: [3]README
|
+ General notes: [3]README
|
||||||
+ License: [4]LICENSE
|
+ License: [4]LICENSE
|
||||||
* Documentation version: $Id: Documentation.html,v 1.191 2002/04/10
|
* Documentation version: $Id: Documentation.html,v 1.192 2002/04/10
|
||||||
12:40:09 lem9 Exp $
|
20:24:35 loic1 Exp $
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
[5]Top - [6]Requirements - [7]Introduction - [8]Installation -
|
[5]Top - [6]Requirements - [7]Introduction - [8]Installation -
|
||||||
@@ -118,8 +118,8 @@ Installation
|
|||||||
except "Password"), mysql.db (all columns) & mysql.tables_priv
|
except "Password"), mysql.db (all columns) & mysql.tables_priv
|
||||||
(all columns except "Grantor" & "Timestamp") tables.
|
(all columns except "Grantor" & "Timestamp") tables.
|
||||||
You must specify the details for the controluser in the
|
You must specify the details for the controluser in the
|
||||||
config.inc.php3 file under the $cfgServers[n]['controluser'] &
|
config.inc.php3 file under the $cfgServers[$i]['controluser']&
|
||||||
$cfgServers[n]['controlpass'] settings.
|
$cfgServers[$i]['controlpass'] settings.
|
||||||
This example assumes you want to use pma as the controluser and
|
This example assumes you want to use pma as the controluser and
|
||||||
pmapass as the controlpass:
|
pmapass as the controlpass:
|
||||||
|
|
||||||
@@ -162,9 +162,10 @@ Installation
|
|||||||
|
|
||||||
'config' authentication mode:
|
'config' authentication mode:
|
||||||
* This mode is the less secure one because it requires you to fill
|
* This mode is the less secure one because it requires you to fill
|
||||||
the $cfgServers[n]['user'] and $cfgServers[n]['password'] fields.
|
the $cfgServers[$i]['user'] and $cfgServers[$i]['password']
|
||||||
|
fields.
|
||||||
But you don't need to setup a "controluser" here: using the
|
But you don't need to setup a "controluser" here: using the
|
||||||
$cfgServers[n]['only_db'] might be enough.
|
$cfgServers[$i]['only_db'] might be enough.
|
||||||
In the ISP FAQ section, there is an entry explaining how to
|
In the ISP FAQ section, there is an entry explaining how to
|
||||||
protect your configuration file.
|
protect your configuration file.
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
@@ -200,30 +201,31 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
Since version 1.4.2, phpMyAdmin supports the administration of
|
Since version 1.4.2, phpMyAdmin supports the administration of
|
||||||
multiple MySQL servers. Therefore, a $cfgServers-array has been
|
multiple MySQL servers. Therefore, a $cfgServers-array has been
|
||||||
added which contains the login information for the different
|
added which contains the login information for the different
|
||||||
servers. $cfgServers[1]['host'] contains the hostname of the
|
servers. The first $cfgServers[$i]['host'] contains the
|
||||||
first server, $cfgServers[2]['host'] the hostname of the second
|
hostname of the first server, the second
|
||||||
server, etc. If you have only one server to administer, simply
|
$cfgServers[$i]['host'] the hostname of the second server, etc.
|
||||||
leave free the hostname of the other $cfgServer-entries.
|
If you have only one server to administer, simply leave free
|
||||||
|
the hostname of the other $cfgServer-entries.
|
||||||
|
|
||||||
$cfgServers[n]['host'] string
|
$cfgServers[$i]['host'] string
|
||||||
The hostname of your n-th MySQL-server. E.g. localhost.
|
The hostname of your $i-th MySQL-server. E.g. localhost.
|
||||||
|
|
||||||
$cfgServers[n]['port'] string
|
$cfgServers[$i]['port'] string
|
||||||
The port-number of your n-th MySQL-server. Default is 3306
|
The port-number of your $i-th MySQL-server. Default is 3306
|
||||||
(leave blank).
|
(leave blank).
|
||||||
|
|
||||||
$cfgServers[n]['socket'] string
|
$cfgServers[$i]['socket'] string
|
||||||
The path to the socket to use. Leave blank for default.
|
The path to the socket to use. Leave blank for default.
|
||||||
To use the socket feature you must run php 3.0.10 or more.
|
To use the socket feature you must run php 3.0.10 or more.
|
||||||
|
|
||||||
$cfgServers[n]['connect_type'] string
|
$cfgServers[$i]['connect_type'] string
|
||||||
What type connection to use with the MySQL server. Your options
|
What type connection to use with the MySQL server. Your options
|
||||||
are 'socket' & 'tcp'. It defaults to 'tcp' as that is nearly
|
are 'socket' & 'tcp'. It defaults to 'tcp' as that is nearly
|
||||||
guarenteed to be available on all MySQL servers, while sockets
|
guarenteed to be available on all MySQL servers, while sockets
|
||||||
are not supported on some platforms.
|
are not supported on some platforms.
|
||||||
|
|
||||||
$cfgServers[n]['controluser'] string
|
$cfgServers[$i]['controluser'] string
|
||||||
$cfgServers[n]['controlpass'] string
|
$cfgServers[$i]['controlpass'] string
|
||||||
When using http or cookie authentication modes (or 'config'
|
When using http or cookie authentication modes (or 'config'
|
||||||
authentication mode since phpMyAdmin 2.2.1), you need to supply
|
authentication mode since phpMyAdmin 2.2.1), you need to supply
|
||||||
the details of a MySQL account that has SELECT privilege on the
|
the details of a MySQL account that has SELECT privilege on the
|
||||||
@@ -239,7 +241,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
support a direct login with the "controluser".
|
support a direct login with the "controluser".
|
||||||
In versions before 2.2.5, those were called "stduser/stdpass".
|
In versions before 2.2.5, those were called "stduser/stdpass".
|
||||||
|
|
||||||
$cfgServers[n]['auth_type'] string ['http'|'cookie'|'config']
|
$cfgServers[$i]['auth_type'] string ['http'|'cookie'|'config']
|
||||||
Whether config or cookie or http authentication should be used
|
Whether config or cookie or http authentication should be used
|
||||||
for this server.
|
for this server.
|
||||||
|
|
||||||
@@ -257,13 +259,13 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
Please see the install section on "Using authentication modes"
|
Please see the install section on "Using authentication modes"
|
||||||
for more information.
|
for more information.
|
||||||
|
|
||||||
$cfgServers[n]['user'] string
|
$cfgServers[$i]['user'] string
|
||||||
$cfgServers[n]['password'] string
|
$cfgServers[$i]['password'] string
|
||||||
The user/password-pair which phpMyAdmin will use to connect to
|
The user/password-pair which phpMyAdmin will use to connect to
|
||||||
this MySQL-server. This user/password pair is not needed when
|
this MySQL-server. This user/password pair is not needed when
|
||||||
http or cookie authentication is used, and should be empty.
|
http or cookie authentication is used, and should be empty.
|
||||||
|
|
||||||
$cfgServers[n]['only_db'] string or array
|
$cfgServers[$i]['only_db'] string or array
|
||||||
If set to a(an array of) database name(s), only this(these)
|
If set to a(an array of) database name(s), only this(these)
|
||||||
database(s) will be shown to the user. Since phpMyAdmin 2.2.1,
|
database(s) will be shown to the user. Since phpMyAdmin 2.2.1,
|
||||||
this/these database(s) name(s) may contain MySQL wilcards
|
this/these database(s) name(s) may contain MySQL wilcards
|
||||||
@@ -277,15 +279,15 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
means only these databases will be displayed but not at all
|
means only these databases will be displayed but not at all
|
||||||
other databases can't be used.
|
other databases can't be used.
|
||||||
|
|
||||||
$cfgServers[n]['verbose'] string
|
$cfgServers[$i]['verbose'] string
|
||||||
Only useful when using phpMyAdmin with multiple server entries.
|
Only useful when using phpMyAdmin with multiple server entries.
|
||||||
If set, this string will be displayed instead of the hostname
|
If set, this string will be displayed instead of the hostname
|
||||||
in the pulldown menu on the main page. This can be useful if
|
in the pulldown menu on the main page. This can be useful if
|
||||||
you want to show only certain databases on your system, for
|
you want to show only certain databases on your system, for
|
||||||
example.
|
example.
|
||||||
|
|
||||||
$cfgServers[n]['bookmarkdb'] string
|
$cfgServers[$i]['bookmarkdb'] string
|
||||||
$cfgServers[n]['bookmarktable'] string
|
$cfgServers[$i]['bookmarktable'] string
|
||||||
Since release 2.2.0 phpMyAdmin allows to bookmark queries. This
|
Since release 2.2.0 phpMyAdmin allows to bookmark queries. This
|
||||||
can be useful for queries you often run.
|
can be useful for queries you often run.
|
||||||
To use this functionality you have to:
|
To use this functionality you have to:
|
||||||
@@ -299,8 +301,8 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
query text NOT NULL,
|
query text NOT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
+ then complete the two variables $cfgServers[n]['bookmarkdb']
|
+ then complete the two variables $cfgServers[$i]['bookmarkdb']
|
||||||
and $cfgServers[n]['bookmarktable'] with the database and
|
and $cfgServers[$i]['bookmarktable'] with the database and
|
||||||
table names you've choosen so phpMyAdmin will be able to find
|
table names you've choosen so phpMyAdmin will be able to find
|
||||||
the bookmarks.
|
the bookmarks.
|
||||||
|
|
||||||
@@ -310,7 +312,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
GRANT SELECT,INSERT,DELETE ON <bookmarkdb>.<bookmarktable> to
|
GRANT SELECT,INSERT,DELETE ON <bookmarkdb>.<bookmarktable> to
|
||||||
'pma'@localhost;
|
'pma'@localhost;
|
||||||
|
|
||||||
$cfgServers[n]['relation'] string
|
$cfgServers[$i]['relation'] string
|
||||||
Since release 2.2.4 you can describe, in a special 'relation'
|
Since release 2.2.4 you can describe, in a special 'relation'
|
||||||
table, which field is a key in another table (a foreign key).
|
table, which field is a key in another table (a foreign key).
|
||||||
phpMyAdmin currently uses this to
|
phpMyAdmin currently uses this to
|
||||||
@@ -333,7 +335,7 @@ $cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
|||||||
`dest_column` varchar(32) NOT NULL default '',
|
`dest_column` varchar(32) NOT NULL default '',
|
||||||
PRIMARY KEY (`src_table`,`src_column`)
|
PRIMARY KEY (`src_table`,`src_column`)
|
||||||
) TYPE=MyISAM COMMENT='Table Relation';
|
) TYPE=MyISAM COMMENT='Table Relation';
|
||||||
+ put the relation table name in $cfgServers[n]['relation']
|
+ put the relation table name in $cfgServers[$i]['relation']
|
||||||
+ then manually fill the relation table with information about
|
+ then manually fill the relation table with information about
|
||||||
the keys.
|
the keys.
|
||||||
|
|
||||||
@@ -695,7 +697,7 @@ FAQ - Frequently Asked Questions
|
|||||||
socket to use when you open the connection. To do this in
|
socket to use when you open the connection. To do this in
|
||||||
phpMyAdmin, you need to complete the socket information in the
|
phpMyAdmin, you need to complete the socket information in the
|
||||||
config.inc.php3.
|
config.inc.php3.
|
||||||
For example: $cfgServers[n]['socket'] = '/tmp/mysql.sock';
|
For example: $cfgServers[$i]['socket'] = '/tmp/mysql.sock';
|
||||||
|
|
||||||
Have also a look at the [55]corresponding section of the MySQL
|
Have also a look at the [55]corresponding section of the MySQL
|
||||||
documentation.
|
documentation.
|
||||||
@@ -766,8 +768,8 @@ FAQ - Frequently Asked Questions
|
|||||||
phpMyAdmin always gives "Access denied" when using http
|
phpMyAdmin always gives "Access denied" when using http
|
||||||
authentication.
|
authentication.
|
||||||
This could happen for several reasons:
|
This could happen for several reasons:
|
||||||
* $cfgServers[n]['controluser'] and/or $cfgServers[n]['controlpass']
|
* $cfgServers[$i]['controluser'] and/or
|
||||||
are wrong.
|
$cfgServers[$i]['controlpass'] are wrong.
|
||||||
* The username/password you specify in the login-dialog are invalid.
|
* The username/password you specify in the login-dialog are invalid.
|
||||||
* You have already setup a security mechanism for the
|
* You have already setup a security mechanism for the
|
||||||
phpMyAdmin-directory, eg. a .htaccess file. This would interfere
|
phpMyAdmin-directory, eg. a .htaccess file. This would interfere
|
||||||
|
104
config.inc.php3
104
config.inc.php3
@@ -36,60 +36,64 @@ $cfgPmaAbsoluteUri = '';
|
|||||||
/**
|
/**
|
||||||
* Server(s) configuration
|
* Server(s) configuration
|
||||||
*/
|
*/
|
||||||
|
$i = 0;
|
||||||
// The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0].
|
// The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0].
|
||||||
// You can disable a server config entry by setting host to ''.
|
// You can disable a server config entry by setting host to ''.
|
||||||
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname
|
$i++;
|
||||||
$cfgServers[1]['port'] = ''; // MySQL port - leave blank for default port
|
$cfgServers[$i]['host'] = 'localhost'; // MySQL hostname
|
||||||
$cfgServers[1]['socket'] = ''; // Path to the socket - leave blank for default socket
|
$cfgServers[$i]['port'] = ''; // MySQL port - leave blank for default port
|
||||||
$cfgServers[1]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
|
$cfgServers[$i]['socket'] = ''; // Path to the socket - leave blank for default socket
|
||||||
$cfgServers[1]['controluser'] = ''; // MySQL control user settings
|
$cfgServers[$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
|
||||||
// (this user must have read-only
|
$cfgServers[$i]['controluser'] = ''; // MySQL control user settings
|
||||||
$cfgServers[1]['controlpass'] = ''; // access to the "mysql/user"
|
// (this user must have read-only
|
||||||
// and "mysql/db" tables)
|
$cfgServers[$i]['controlpass'] = ''; // access to the "mysql/user"
|
||||||
$cfgServers[1]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
|
// and "mysql/db" tables)
|
||||||
$cfgServers[1]['user'] = 'root'; // MySQL user
|
$cfgServers[$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
|
||||||
$cfgServers[1]['password'] = ''; // MySQL password (only needed
|
$cfgServers[$i]['user'] = 'root'; // MySQL user
|
||||||
// with 'config' auth_type)
|
$cfgServers[$i]['password'] = ''; // MySQL password (only needed
|
||||||
$cfgServers[1]['only_db'] = ''; // If set to a db-name, only
|
// with 'config' auth_type)
|
||||||
// this db is displayed
|
$cfgServers[$i]['only_db'] = ''; // If set to a db-name, only
|
||||||
// at left frame
|
// this db is displayed
|
||||||
// It may also be an array
|
// at left frame
|
||||||
// of db-names
|
// It may also be an array
|
||||||
$cfgServers[1]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
|
// of db-names
|
||||||
$cfgServers[1]['bookmarkdb'] = ''; // Bookmark db - leave blank for no bookmark support
|
$cfgServers[$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
|
||||||
$cfgServers[1]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
|
$cfgServers[$i]['bookmarkdb'] = ''; // Bookmark db - leave blank for no bookmark support
|
||||||
$cfgServers[1]['relation'] = ''; // table to describe the relation between links (see doc)
|
$cfgServers[$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
|
||||||
// - leave blank for no relation-links support
|
$cfgServers[$i]['relation'] = ''; // table to describe the relation between links (see doc)
|
||||||
|
// - leave blank for no relation-links support
|
||||||
|
|
||||||
$cfgServers[2]['host'] = '';
|
$i++;
|
||||||
$cfgServers[2]['port'] = '';
|
$cfgServers[$i]['host'] = '';
|
||||||
$cfgServers[2]['socket'] = '';
|
$cfgServers[$i]['port'] = '';
|
||||||
$cfgServers[2]['connect_type'] = 'tcp';
|
$cfgServers[$i]['socket'] = '';
|
||||||
$cfgServers[2]['controluser'] = '';
|
$cfgServers[$i]['connect_type'] = 'tcp';
|
||||||
$cfgServers[2]['controlpass'] = '';
|
$cfgServers[$i]['controluser'] = '';
|
||||||
$cfgServers[2]['auth_type'] = 'config';
|
$cfgServers[$i]['controlpass'] = '';
|
||||||
$cfgServers[2]['user'] = 'root';
|
$cfgServers[$i]['auth_type'] = 'config';
|
||||||
$cfgServers[2]['password'] = '';
|
$cfgServers[$i]['user'] = 'root';
|
||||||
$cfgServers[2]['only_db'] = '';
|
$cfgServers[$i]['password'] = '';
|
||||||
$cfgServers[2]['verbose'] = '';
|
$cfgServers[$i]['only_db'] = '';
|
||||||
$cfgServers[2]['bookmarkdb'] = '';
|
$cfgServers[$i]['verbose'] = '';
|
||||||
$cfgServers[2]['bookmarktable'] = '';
|
$cfgServers[$i]['bookmarkdb'] = '';
|
||||||
$cfgServers[2]['relation'] = '';
|
$cfgServers[$i]['bookmarktable'] = '';
|
||||||
|
$cfgServers[$i]['relation'] = '';
|
||||||
|
|
||||||
$cfgServers[3]['host'] = '';
|
$i++;
|
||||||
$cfgServers[3]['port'] = '';
|
$cfgServers[$i]['host'] = '';
|
||||||
$cfgServers[3]['socket'] = '';
|
$cfgServers[$i]['port'] = '';
|
||||||
$cfgServers[3]['connect_type'] = 'tcp';
|
$cfgServers[$i]['socket'] = '';
|
||||||
$cfgServers[3]['controluser'] = '';
|
$cfgServers[$i]['connect_type'] = 'tcp';
|
||||||
$cfgServers[3]['controlpass'] = '';
|
$cfgServers[$i]['controluser'] = '';
|
||||||
$cfgServers[3]['auth_type'] = 'config';
|
$cfgServers[$i]['controlpass'] = '';
|
||||||
$cfgServers[3]['user'] = 'root';
|
$cfgServers[$i]['auth_type'] = 'config';
|
||||||
$cfgServers[3]['password'] = '';
|
$cfgServers[$i]['user'] = 'root';
|
||||||
$cfgServers[3]['only_db'] = '';
|
$cfgServers[$i]['password'] = '';
|
||||||
$cfgServers[3]['verbose'] = '';
|
$cfgServers[$i]['only_db'] = '';
|
||||||
$cfgServers[3]['bookmarkdb'] = '';
|
$cfgServers[$i]['verbose'] = '';
|
||||||
$cfgServers[3]['bookmarktable'] = '';
|
$cfgServers[$i]['bookmarkdb'] = '';
|
||||||
$cfgServers[3]['relation'] = '';
|
$cfgServers[$i]['bookmarktable'] = '';
|
||||||
|
$cfgServers[$i]['relation'] = '';
|
||||||
|
|
||||||
// If you have more than one server configured, you can set $cfgServerDefault
|
// If you have more than one server configured, you can set $cfgServerDefault
|
||||||
// to any one of them to autoconnect to that server when phpMyAdmin is started,
|
// to any one of them to autoconnect to that server when phpMyAdmin is started,
|
||||||
|
Reference in New Issue
Block a user