git clone [email protected]:juigilkishore/butterfly.git
cd butterfly
sudo apt-get install python-virtualenv $(cat dependencies.txt)
virtualenv butterfly-env
source butterfly-env/bin/activate
pip install -r requirements.txt
mysql -uroot -p<root-password>
mysql> CREATE DATABASE butterfly;
mysql> GRANT ALL PRIVILEGES ON butterfly.* TO 'butterflyuser'@'localhost' IDENTIFIED BY 'butterflypass';
mysql> GRANT ALL PRIVILEGES ON butterfly.* TO 'butterflyuser'@'%' IDENTIFIED BY 'butterflypass';
mysql -ubutterflyuser -pbutterflypass
mysql> USE butterfly
Edit "connection" in "Database" section in the etc/butterfly.conf configuration file with butterfly database's username and password
source butterfly-env/bin/activate
python butterfly.py --action db_init --config etc/butterfly.conf
source butterfly-env/bin/activate
python butterfly.py --action db_drop --config etc/butterfly.conf
TODO