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