From 4fab5c1a93417d9002d24420d8be112f16cd87af Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 8 Jun 2018 07:16:36 +0200 Subject: [PATCH] Updated Installation (markdown) --- Installation.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Installation.md b/Installation.md index c6eccfa..5a27865 100644 --- a/Installation.md +++ b/Installation.md @@ -123,7 +123,15 @@ The table prefix option is called `tbl`. > If you gain any experience running PrivateBin on other RDBMS, please let us > know. -For reference or if you want to create the table schema for yourself (replace +The following GRANTs (privileges) are required for the PrivateBin user in **MySQL**. In normal operation: +- INSERT, SELECT, DELETE on the paste and comment tables +- SELECT on the config table + +If you want PrivateBin to handle table creation (when you create the first paste) and updates (after you update PrivateBin to a new release), you need to give the user these additional privileges: +- CREATE, INDEX and ALTER on the database +- INSERT and UPDATE on the config table + +For reference or if you want to create the table schema for yourself to avoid having to give PrivateBin too many permissions (replace `prefix_` with your own table prefix and create the table schema with your favourite MySQL console): ```sql @@ -158,4 +166,4 @@ CREATE TABLE prefix_config ( INSERT INTO prefix_config VALUES('VERSION', '1.1.1'); ``` -In PostgreSQL, the data, attachment, nickname and vizhash columns needs to be TEXT and not BLOB or MEDIUMBLOB. \ No newline at end of file +In **PostgreSQL**, the data, attachment, nickname and vizhash columns needs to be TEXT and not BLOB or MEDIUMBLOB. \ No newline at end of file