21 lines
415 B
Plaintext
21 lines
415 B
Plaintext
Dependancies
|
|
------------
|
|
apt-get install python-passlib python-webpy python-pip python-mysqldb
|
|
pip install bleach
|
|
|
|
mysql
|
|
-----
|
|
|
|
mysqladmin -u root -p create niche
|
|
|
|
mysql -u root -p niche
|
|
|
|
CREATE USER 'niche'@'localhost' IDENTIFIED BY 'whatever';
|
|
GRANT ALL PRIVILEGES ON niche.* TO 'niche'@'localhost';
|
|
|
|
mysql -u niche -p niche < schema.sql
|
|
|
|
Sanitizing
|
|
----------
|
|
bleach looks fine https://github.com/jsocol/bleach
|