From b05cd810ceb9e4d2a4b1c58c4d1d2289f8a02077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 9 Dec 2001 12:50:28 +0000 Subject: [PATCH] the suggested statement to create a new user and give him grants on a db was invalid --- ChangeLog | 3 +++ Documentation.html | 22 +++++++++---------- Documentation.txt | 53 +++++++++++++++++++++++++++++----------------- 3 files changed, 48 insertions(+), 30 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21181883a..6161d2f51 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,9 @@ $Source$ * read_dump.php3; libraries/build_dump.lib.php3: sending the "fake" header at each itération is about ten times faster than checking elapsed time and send the header each 20 seconds. + * Documentation.html, line 282: the suggested statement to create a new + user and give him grants on a db was invalid. + * Documentation.txt: updated. 2001-12-08 Loïc Chapeaux * libraries/left.js, lines 234-240: fixed a js bug with empty databases. diff --git a/Documentation.html b/Documentation.html index 1ea2b41bb..66d11eff6 100755 --- a/Documentation.html +++ b/Documentation.html @@ -279,7 +279,7 @@ privileges on a set of perticular databases but shouldn't have any global privileges. For example, to grant the user real_user with all privileges on the database user_base:
-    GRANT ALL PRIVILEGES ON user_base TO 'real_user'@localhost IDENTIFIED BY 'real_password'; +    GRANT ALL PRIVILEGES ON user_base.* TO 'real_user'@localhost IDENTIFIED BY 'real_password';
What the user may now do is controlled entirely by the MySQL user management system. @@ -867,23 +867,23 @@

- I cannot insert a text file in a table, and I get an error - about safe mode being in effect. + I cannot insert a text file in a table, and I get an error about safe + mode being in effect.
Your uploaded file is saved by PHP in the "upload dir", as defined in php.ini by the variable upload_tmp_dir (usually the system default is /tmp).
- We recommend the following setup for Apache servers running in - safe mode, to enable uploads of files while being reasonably secure: + We recommend the following setup for Apache servers running in safe mode, + to enable uploads of files while being reasonably secure:

diff --git a/Documentation.txt b/Documentation.txt index 18c19f49e..bddd87839 100644 --- a/Documentation.txt +++ b/Documentation.txt @@ -1,5 +1,5 @@ - phpMyAdmin 2.2.2 Documentation + phpMyAdmin 2.2.3-dev Documentation * [1]Official phpMyAdmin project homepage [ http://www.phpwizard.net/projects/phpMyAdmin/ ] @@ -9,8 +9,8 @@ + Version history: [3]ChangeLog + General notes: [4]README + License: [5]LICENSE - * Documentation version: $Id: Documentation.html,v 1.105 2001/12/02 - 17:21:26 loic1 Exp $ + * Documentation version: $Id: Documentation.html,v 1.109 2001/12/05 + 17:48:48 lem9 Exp $ ______________________________________________________________________ [6]Top - [7]Requirements - [8]Introduction - [9]Installation - @@ -119,7 +119,7 @@ Installation privileges on a set of perticular databases but shouldn't have any global privileges. For example, to grant the user real_user with all privileges on the database user_base: - GRANT ALL PRIVILEGES ON user_base TO 'real_user'@localhost + GRANT ALL PRIVILEGES ON user_base.* TO 'real_user'@localhost IDENTIFIED BY 'real_password'; What the user may now do is controlled entirely by the MySQL user management system. @@ -376,10 +376,17 @@ Configuration Force: always use this language (must be defined in the select_lang.inc.php3 script). + $cfgLeftWidth integer + Left frame width in pixel. + $cfgLeftBgColor string [HTML color] $cfgRightBgColor string [HTML color] The background colors (HTML) used for both the frames. + $cfgLeftPointerColor string [HTML color] + The color (HTML) used for the pointer in the left frame (does + not work with NS4). + $cfgBorder integer The size of a table's border. @@ -392,7 +399,7 @@ Configuration $cfgBgcolorTwo string [HTML color] The color (HTML) #2 for table rows. - $cfgPointerColor string [HTML color] + $cfgBrowsePointerColor string [HTML color] The color (HTML) used for the pointer in browse mode (does not work with NS4). @@ -411,9 +418,6 @@ Configuration when tables contents are displayed (you may have them displayed both at the left and at the right). - $cfgLeftWidth integer - Left frame width in pixel. - $cfgColumnTypes array All possible types of a MySQL column. In most cases you don't need to edit this. @@ -476,18 +480,20 @@ FAQ - Frequently Asked Questions Mode or not, and so on). So, you must have PHP4 >= 4.0.4 and Zlib/Bzip2 support (--with-zlib and --with-bz2). - I try to insert a text file in a table, and I get: - Error MySQL said: The file '/tmp/phpkvpp60' must be in the database - directory or be readable by all + I cannot insert a text file in a table, and I get an error about safe + mode being in effect. Your uploaded file is saved by PHP in the "upload dir", as defined in php.ini by the variable upload_tmp_dir (usually the system default is - /tmp). If this directory is not readable by all, the MySQL server - (which must be running on the same machine) cannot open the file - (except if running as root, which is not recommended). - The system administrator can do a "chmod 777 /tmp": then the MySQL - server will accept to read it. Also, the user must have File - privilege. - + /tmp). + We recommend the following setup for Apache servers running in safe + mode, to enable uploads of files while being reasonably secure: + * create a separate directory for uploads: mkdir /tmp/php + * give ownership to the Apache server's user.group: chown + apache.apache /tmp/php + * give proper permission: chmod 600 /tmp/php + * put upload_tmp_dir = /tmp/php in php.ini + * restart Apache + I'm having troubles when uploading files. In general file uploads don't work on my system and uploaded files have a Content-Type: header in the first line. @@ -619,11 +625,20 @@ FAQ - Frequently Asked Questions A workaround is to create a smaller number of fields, then come back to your table properties and add the other fields. - With Xitami 2.5b4, phpMyAdmin won't process form fields + With Xitami 2.5b4, phpMyAdmin won't process form fields. This is not a phpMyAdmin problem but a Xitami known bug: you'll face it with each script/website that use forms. Upgrade or downgrade your Xitami server. + I have problems dumping tables with Konqueror (phpMyAdmin 2.2.2) + With Konqueror 2.1.1: plain dumps, zip and gzip dumps work ok, except + that the proposed file name for the dump is always 'tbl_dump.php'. + Bzip2 dumps don't seem to work. + With Konqueror 2.2.1: plain dumps work; zip dumps are placed into the + user's temporary directory, so they must be moved before closing + Konqueror, or else they disappear. Gzip dumps give an error message. + Testing needs to be done for Konqueror 2.2.2. + [Using phpMyAdmin] I can't insert new rows into a table - MySQL brings up a SQL-error.