Skip to content

Commit 9270fd5

Browse files
author
Richard Jones
committed
clarified minimum version required for MySQL backend (4.0.16)
1 parent 1b8ea73 commit 9270fd5

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

doc/installation.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Installing Roundup
33
==================
44

5-
:Version: $Revision: 1.64 $
5+
:Version: $Revision: 1.65 $
66

77
.. contents::
88

@@ -242,12 +242,13 @@ There's several to choose from, each with benefits and limitations:
242242
**mysql**
243243
Backend for popular RDBMS MySQL. According to benchmarks, this backend works
244244
much faster than any of \*dbm ones, but slightly slower than metakit and
245-
sqlite. For more info on backend installation see doc/mysql.txt.
245+
sqlite. You must read doc/mysql.txt for additional installation steps and
246+
requirements.
246247
**postgresql**
247248
Backend for popular RDBMS PostgreSQL. According to benchmarks, this
248249
backend works much faster than any of \*dbm ones and mysql, but slightly
249-
slower than metakit and sqlite.
250-
For more info on backend installation see doc/postgresql.txt.
250+
slower than metakit and sqlite. You must read doc/postgresql.txt for
251+
additional installation steps and requirements.
251252
**metakit**
252253
This backend is implemented over the metakit_ storage system, using Mk4Py as
253254
the interface. It scales much better than the dbm backends.

doc/mysql.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MySQL Backend
33
=============
44

5-
:version: $Revision: 1.6 $
5+
:version: $Revision: 1.7 $
66

77
This notes detail the MySQL backend for the Roundup issue tracker.
88

@@ -13,9 +13,11 @@ Prerequisites
1313
To use MySQL as the backend for storing roundup data, you also need
1414
to install:
1515

16-
1. MySQL RDBMS 4.0 or higher - http://www.mysql.com. Your MySQL
16+
1. MySQL RDBMS 4.0.16 or higher - http://www.mysql.com. Your MySQL
1717
installation MUST support InnoDB tables (or Berkeley DB (BDB) tables
18-
if you have no other choice)
18+
if you have no other choice). If you're running < 4.0.16 (but not <4.0)
19+
then you'll need to use BDB to pass all unit tests. Edit the
20+
``roundup/backends/back_mysql.py`` file to enable DBD instead of InnoDB.
1921
2. Python MySQL interface - http://sourceforge.net/projects/mysql-python
2022

2123
:Note: the InnoDB implementation has a bug that Roundup tickles. See

roundup/backends/back_mysql.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ class Database(Database):
5050
arg = '%s'
5151

5252
# Backend for MySQL to use.
53-
# InnoDB is faster, but has a bug in its rollback machinery that causes
54-
# some selects in subsequent transactions to fail. BDB does not have
55-
# this bug, but is apparently much slower.
56-
#mysql_backend = 'InnoDB'
57-
mysql_backend = 'BDB'
53+
# InnoDB is faster, but if you're running <4.0.16 then you'll need to
54+
# use BDB to pass all unit tests.
55+
mysql_backend = 'InnoDB'
56+
#mysql_backend = 'BDB'
5857

5958
def sql_open_connection(self):
6059
db = getattr(self.config, 'MYSQL_DATABASE')

0 commit comments

Comments
 (0)