From 086cc1c66a21e53f17cbad766d7f7cfeab2d7316 Mon Sep 17 00:00:00 2001 From: "vladd%bugzilla.org" <> Date: Thu, 8 Jun 2006 06:20:27 +0000 Subject: Documentation patch for bug 314385: fine-tune the MySQL configuration instructions for allowing large attachments to be stored; patch by Colin Ogilvie , r=vladd. --- docs/xml/installation.xml | 72 +++++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 34 deletions(-) (limited to 'docs') diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml index e2767e04e..743d67735 100644 --- a/docs/xml/installation.xml +++ b/docs/xml/installation.xml @@ -1,5 +1,5 @@ - + Installing Bugzilla @@ -721,39 +721,6 @@ -
- Permit attachments table to grow beyond 4GB - - - By default, MySQL will limit the size of a table to 4GB. - This limit is present even if the underlying filesystem - has no such limit. To set a higher limit, follow these - instructions. - - - - Run the MySQL command-line client and - enter: - - - mysql> ALTER TABLE attachments - AVG_ROW_LENGTH=1000000, MAX_ROWS=20000; - - - - The above command will change the limit to 20GB. Mysql will have - to make a temporary copy of your entire table to do this. Ideally, - you should do this when your attachments table is still small. - - - - - This does not affect Big Files, attachments that are stored directly - on disk instead of in the database. - - -
-
Add a user to MySQL @@ -789,6 +756,43 @@ mysql> FLUSH PRIVILEGES;
+ +
+ Permit attachments table to grow beyond 4GB + + + By default, MySQL will limit the size of a table to 4GB. + This limit is present even if the underlying filesystem + has no such limit. To set a higher limit, follow these + instructions. + + + + After you have completed the rest of the installation (or at least the + database setup parts), you should run the MySQL + command-line client and enter the following, replacing $bugs_db + with your Bugzilla database name (bugs by default): + + + + mysql> use $bugs_db + mysql> ALTER TABLE attachments + AVG_ROW_LENGTH=1000000, MAX_ROWS=20000; + + + + The above command will change the limit to 20GB. Mysql will have + to make a temporary copy of your entire table to do this. Ideally, + you should do this when your attachments table is still small. + + + + + This does not affect Big Files, attachments that are stored directly + on disk instead of in the database. + + +
-- cgit v1.2.3-24-g4f1b