Update README with db instructions

Change-Id: Icb82950d3dfea9c5f9bbab772f3c2b8cec785c78
This commit is contained in:
Aaron Rosen 2014-11-19 19:59:42 -08:00
parent 25522df545
commit a805cd1c95
1 changed files with 19 additions and 1 deletions

View File

@ -125,7 +125,7 @@ Install the following software, if you haven't already.
* java: http://java.com (any reasonably current version should work)
On Ubuntu: apt-get install default-jre
* Additionally: git gcc python-dev libxml2 libxslt1-dev libzip-dev
* Additionally: git gcc python-dev libxml2 libxslt1-dev libzip-dev python-mysqldb mysql-server
Clone Congress::
@ -133,6 +133,24 @@ Clone Congress::
$ git clone https://github.com/stackforge/congress.git
$ cd congress
Install Source code::
$ sudo python setup.py install
Create database::
$ mysql -u root -p
$ mysql> CREATE DATABASE congress;
$ mysql> GRANT ALL PRIVILEGES ON congress.* TO 'congress'@'localhost' \
IDENTIFIED BY 'CONGRESS_DBPASS';
$ mysql> GRANT ALL PRIVILEGES ON congress.* TO 'congress'@'%' \
IDENTIFIED BY 'CONGRESS_DBPASS';
(Configure congress.conf with db information)
Push down schema
$ congress-db-manage --config-file /path/to/congress.conf
Install test harness::
$ pip install 'tox<1.7'