From ec2d3e94473a6ebcb401486d8c6cb191528cd476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Thu, 11 Oct 2001 22:47:24 +0000 Subject: [PATCH] Added warnings about the "only_db" setting --- ChangeLog | 4 ++++ Documentation.html | 12 +++++++++++- config.inc.php3 | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b768e443..929253c36 100755 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,10 @@ $Source$ displayed in the servers choice combo. * libraries/common.lib.php3, lines 340-343: fixed erroneous variable name. * libraries/bookmarks.lib.php3, line 29: removed unnecessary line of code. + * Documentation.html: added warnings about the use of the "only_db" setting + thanks to Ignacio Vazquez-Abrams . + * config.inc.php3, line 50: changed the comment line for the "only_db" + setting. 2001-10-09 Loïc Chapeaux * user_details.php3, lines 1232-1245 & 1254: fixed some bugs with modifying diff --git a/Documentation.html b/Documentation.html index 7740f97ef..39e203847 100755 --- a/Documentation.html +++ b/Documentation.html @@ -193,6 +193,12 @@

Installation

+

+ NOTE: phpMyAdmin does not apply any special security + methods to the MySQL database server. It is still the sysadmin's job to + grant permissions on the MySQL databases properly. +

+

Warning for Mac users: php seems not to like Mac end of lines character ("\r") and Stuffit unstuffs with Mac @@ -375,7 +381,11 @@

$cfgServers[n]['only_db'] string or array
If set to a(an array of) database name(s), only this(these) database(s) - will be shown to the user. + will be shown to the user.
+ Warning: this setting does not replace the + privileges rules of the MySQL database server. If set, it just means + only these databases will be displayed but not at + all other databases can't be used.

diff --git a/config.inc.php3 b/config.inc.php3 index 3e411087b..773389bb6 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -47,7 +47,7 @@ $cfgServers[1]['stduser'] = ''; // MySQL standard user (only need $cfgServers[1]['stdpass'] = ''; // MySQL standard password (only needed with advanced auth) $cfgServers[1]['user'] = 'root'; // MySQL user (only needed with basic auth) $cfgServers[1]['password'] = ''; // MySQL password (only needed with basic auth) -$cfgServers[1]['only_db'] = ''; // If set to a db-name, only this db is accessible +$cfgServers[1]['only_db'] = ''; // If set to a db-name, only this db is displayed at left frame // It may also be an array of db-names $cfgServers[1]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname $cfgServers[1]['bookmarkdb'] = ''; // Bookmark db - leave blank for no bookmark support