This commit is contained in:
Bernhard Fröhlich 2013-04-06 16:47:54 +02:00
parent f4b5012a08
commit 502a4277c4

View file

@ -34,12 +34,17 @@ Setup
GRANT DELETE, INSERT, SELECT, UPDATE ON cats_db.* TO cats_user; GRANT DELETE, INSERT, SELECT, UPDATE ON cats_db.* TO cats_user;
- Change the database context to the newly created cats_db: - Change the database context to the newly created cats_db:
USE cats_db; USE cats_db;
- Execute the scripts from the database subdirectory to create the database structure. - Execute the scripts from the database subdirectory to create the database structure:
SOURCE create_db.sql;
- Check the current version of the database: - Check the current version of the database:
SELECT MAX(version) FROM schema_version; SELECT MAX(version) FROM schema_version;
- Execute all update*.sql in numerical order which have a number bigger than the current - Execute all update*.sql in numerical order which have a number bigger than the current
schema version. If the select statement returns an error (ERROR 1146 (42S02): Table schema version. If the select statement returns an error (ERROR 1146 (42S02): Table
'cats_db.schema_version' doesn't exist) execute all of them. 'cats_db.schema_version' doesn't exist) execute all of them.
SOURCE update1.sql;
- You will probably want to load a sample test by executing sample_test.sql from the
database directory:
SOURCE sample_test.sql;
- Change to cats directory, copy index.php.template to index.php - Change to cats directory, copy index.php.template to index.php
- Edit index.php, replace the string "FILEPATHTOHERE" with the absolute path of the - Edit index.php, replace the string "FILEPATHTOHERE" with the absolute path of the
@ -47,7 +52,6 @@ Setup
- Change to the includes subdirectory - Change to the includes subdirectory
- Copy db_connect.inc.template to db_connect.inc - Copy db_connect.inc.template to db_connect.inc
- Edit db_connect.inc - Edit db_connect.inc
- You may want to install a sample test by executing sample_test.sql from the database directory
- Make sure that the directive "SSLVerifyClient optional" or "SSLVerifyClient require" - Make sure that the directive "SSLVerifyClient optional" or "SSLVerifyClient require"
are active for the CATS web directory, otherwise no client certificate login is requested are active for the CATS web directory, otherwise no client certificate login is requested