From c041af3b91b3c06dd8b58484b58242f910040509 Mon Sep 17 00:00:00 2001 From: Schappi Date: Mon, 23 Mar 2026 12:47:17 +0100 Subject: [PATCH] Update self-managed.md Added simple MariaDB setup Signed-off-by: Schappi --- .../firefly-iii/installation/self-managed.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/docs/how-to/firefly-iii/installation/self-managed.md b/docs/docs/how-to/firefly-iii/installation/self-managed.md index 47e0e727..5d75625b 100644 --- a/docs/docs/how-to/firefly-iii/installation/self-managed.md +++ b/docs/docs/how-to/firefly-iii/installation/self-managed.md @@ -121,6 +121,8 @@ Make sure you configure at least the database. For SQLite, you must drop all the This step is very important, because Firefly III needs a database to work with, and it will tell you whether your configuration is correct. +#### SQLite + If you decide to use SQLite, make sure you run the following command to create the SQLite database file. ```bash @@ -129,6 +131,20 @@ cd /var/www/firefly-iii touch ./storage/database/database.sqlite ``` +#### MariaDB + +Install Mariadb, create a user and a database for Firefly-III, and grant all privileges to that new user for this database + +Example-setup for a locally installed MariaDB database on the same server as the webserver where Firefly App resides in. + +```bash +CREATE USER firefly3@localhost IDENTIFIED BY 'firefly3'; +create database firefly3; +grant all privileges on firefly3.* to 'firefly3'@'localhost'; +``` + +#### General + Either way, in all cases, run these commands to initialize the database: ```bash