From 2e7e04b360412acf628ef5d27f933b0d0c23dc39 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Fri, 4 Apr 2008 11:47:02 +0000 Subject: Documentation XML patch for bug 249802: Make the SQL example for granting SQL privs to the DB user suitable for MySQL 4. --- docs/en/xml/installation.xml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/docs/en/xml/installation.xml b/docs/en/xml/installation.xml index fab350e08..77ee3fc49 100644 --- a/docs/en/xml/installation.xml +++ b/docs/en/xml/installation.xml @@ -1,5 +1,5 @@ - + Installing Bugzilla @@ -672,21 +672,26 @@ Modify it to reflect your setup if you will be connecting from another machine or as a different user. - Run the mysql command-line client and - enter: + Run the mysql command-line client. + If you are using MySQL 4.0 or newer, enter: - mysql> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE, - DROP,REFERENCES ON bugs.* TO bugs@localhost - IDENTIFIED BY '$db_pass'; + mysql> GRANT SELECT, INSERT, + UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, + CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* + TO bugs@localhost IDENTIFIED BY '$db_pass'; mysql> FLUSH PRIVILEGES; - - If you are using MySQL 4, you need to add + If you are using an older version of MySQL, the LOCK TABLES and - CREATE TEMPORARY TABLES permissions - to the list. - - + CREATE TEMPORARY TABLES + permissions will be unavailable and should be removed from the permissions + list. In this case, the following command line can be used: + + mysql> GRANT SELECT, INSERT, + UPDATE, DELETE, INDEX, ALTER, CREATE, DROP, + REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY + '$db_pass'; + mysql> FLUSH PRIVILEGES; -- cgit v1.2.3-24-g4f1b