From 2b2d0be7ca35ea4b67d4438a581e263c2f19f3b5 Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 9 Dec 2021 09:31:01 +0100 Subject: [PATCH] add docs for mariadb setup --- docs/install/debian.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/install/debian.md b/docs/install/debian.md index ff13d212..3209fdfe 100644 --- a/docs/install/debian.md +++ b/docs/install/debian.md @@ -21,8 +21,8 @@ sudo npm install -g yarn ``` [source](https://github.com/nodesource/distributions/blob/master/README.md) - -1. Setup with postgreSQL __(optional as you can choose sqlite)__ +#### Choose you database (sqlite, postgresql, mariadb, mysql) +1. Setup using postgreSQL __(optional)__ ```bash sudo apt-get install postgresql # Create the database @@ -32,6 +32,18 @@ postgres=# create user gancio with encrypted password 'gancio'; postgres=# grant all privileges on database gancio to gancio; ``` +1. Setup using MariaDB (__optional__) +```bash +sudo apt-get install mariadb +sudo mysql +MariaDB [(none)]> create database gancio; +Query OK, 1 row affected (0.001 sec) +MariaDB [(none)]> create user gancio identified by 'gancio'; +Query OK, 0 rows affected (0.011 sec) +MariaDB [(none)]> grant all privileges on gancio.* to gancio; +Query OK, 0 rows affected (0.009 sec) +``` + 1. Create a user to run gancio from ```bash sudo adduser --group --system --shell /bin/false --home /opt/gancio gancio