Updated Installation (markdown)
parent
b5428220f8
commit
4fab5c1a93
@ -123,7 +123,15 @@ The table prefix option is called `tbl`.
|
|||||||
> If you gain any experience running PrivateBin on other RDBMS, please let us
|
> If you gain any experience running PrivateBin on other RDBMS, please let us
|
||||||
> know.
|
> 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):
|
`prefix_` with your own table prefix and create the table schema with your favourite MySQL console):
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
@ -158,4 +166,4 @@ CREATE TABLE prefix_config (
|
|||||||
INSERT INTO prefix_config VALUES('VERSION', '1.1.1');
|
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.
|
In **PostgreSQL**, the data, attachment, nickname and vizhash columns needs to be TEXT and not BLOB or MEDIUMBLOB.
|
Loading…
Reference in New Issue
Block a user