From 2021015b8110d606e695038ec6fdcda5eb152a53 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Wed, 7 Jul 2004 06:30:03 +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/xml/installation.xml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'docs') diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml index 4b5600752..cafdc0462 100644 --- a/docs/xml/installation.xml +++ b/docs/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