diff --git a/README.md b/README.md index c3cc0d9..5f5eb91 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,16 @@ sudo yum install -y go mariadb-server mariadb ``` ### Installing - -* go get https://github.com/ewhal/Pastebin -* make will automatically download the dependencies for Pastebin +* Please note this assumes you have Mariadb and Go already setup. +* go get github.com/ewhal/Pastebin +* make +* mysql -u root -p +* CREATE USER 'paste'@'localhost' IDENTIFIED BY 'password'; +* CREATE database paste; +* GRANT ALL PRIVILEGES ON paste . * TO 'paste'@'localhost'; +* FLUSH PRIVILEGES; +* quit; +* mysql -u paste -p paste < database.sql * cp config.example.json config.json * nano config.json * Configure port and database details