22MySQL Backend
33=============
44
5- This notes detail the MySQL backend for the roundup issue tracker.
5+ :version: $Revision: 1.4.2.1 $
6+
7+ This notes detail the MySQL backend for the Roundup issue tracker.
68
79
810Prerequisites
@@ -11,10 +13,10 @@ Prerequisites
1113To use MySQL as the backend for storing roundup data, you also need
1214to install:
1315
14- 1. MySQL RDBMS 3.23.34 or higher - http://www.mysql.com. Your MySQL
15- installation should support Berkeley DB (BDB) tables for transaction
16- support.
17- 2. Python MySQL interface - http://sourceforge.net/projects/mysql-python
16+ 1. MySQL RDBMS 4.0 or higher - http://www.mysql.com. Your MySQL
17+ installation MUST support InnoDB tables (or Berkeley DB (BDB) tables
18+ if you have no other choice)
19+ 2. Python MySQL interface - http://sourceforge.net/projects/mysql-python
1820
1921
2022Running the MySQL tests
@@ -23,16 +25,19 @@ Running the MySQL tests
2325Roundup tests expect an empty MySQL database. Two alternate ways to provide
2426this:
2527
26- 1. If you have root permissions on the MySQL server, you can create
27- the necessary database entries using this SQL sequence:
28+ 1. If you have root permissions on the MySQL server, you can create
29+ the necessary database entries using the follwing SQL sequence. Use
30+ ``mysql`` on the command line to enter::
2831
29- CREATE DATABASE rounduptest
30- GRANT ALL PRIVILEGES ON rounduptest TO rounduptest@localhost IDENTIFIED BY 'rounduptest'
31- FLUSH PRIVILEGES
32+ CREATE DATABASE rounduptest;
33+ USE rounduptest;
34+ GRANT ALL PRIVILEGES ON rounduptest.* TO rounduptest@localhost
35+ IDENTIFIED BY 'rounduptest';
36+ FLUSH PRIVILEGES;
3237
33- 2. If your administrator has provided you with database connection info,
34- you can modify MYSQL_* constants in the file test/test_db.py with
35- the correct values.
38+ 2. If your administrator has provided you with database connection info,
39+ you can modify MYSQL_* constants in the file test/test_db.py with
40+ the correct values.
3641
3742Note that the MySQL database should not contain any tables. Tests will not
3843drop the database with existing data.
@@ -43,19 +48,17 @@ Additional configuration
4348
4449To initialise and use the MySQL database backend, roundup's configuration
4550file (config.py in the tracker's home directory) should have the following
46- entries:
51+ entries::
4752
4853 MYSQL_DBHOST = 'localhost'
4954 MYSQL_DBUSER = 'rounduptest'
5055 MYSQL_DBPASSWORD = 'rounduptest'
5156 MYSQL_DBNAME = 'rounduptest'
52- MYSQL_DATABASE = ( MYSQL_DBHOST, MYSQL_DBUSER, MYSQL_DBPASSWORD, MYSQL_DBNAME )
57+ MYSQL_DATABASE = ( MYSQL_DBHOST, MYSQL_DBUSER, MYSQL_DBPASSWORD,
58+ MYSQL_DBNAME )
5359
5460Fill in the first four entries with values for your local MySQL installation
55- before running "roundup-admin initialise".
56-
57-
58- Andrey Lebedev <
[email protected] >
59-
61+ before running "roundup-admin initialise". Use the commands in the `Running the
62+ MySQL tests` to set up a database if you have privilege, or ask your local
63+ administrator if not.
6064
61- vim: et tw=80
0 commit comments