From c8e766b18b09e2cb235434f6a8f3a4ffee74e48a Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Mon, 31 Jan 2022 15:46:20 +0100 Subject: [PATCH] Updated Using the MariaDB (MySQL) Backend (markdown) --- Using-the-MariaDB-(MySQL)-Backend.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Using-the-MariaDB-(MySQL)-Backend.md b/Using-the-MariaDB-(MySQL)-Backend.md index b011bf7..ef8c1b3 100644 --- a/Using-the-MariaDB-(MySQL)-Backend.md +++ b/Using-the-MariaDB-(MySQL)-Backend.md @@ -93,6 +93,13 @@ volumes: mariadb_vol: ``` +
+ +## Manually create a database (For example, using an existing database server) + +:warning: To execute these queries you need a user which has the privileges to create new databases and users.
+Most of the time that would be the `root` user, but it could be different for your database. + ### Create database and user 1. Create an new (empty) database for vaultwarden (Ensure the Charset and Collate are correct!): @@ -126,7 +133,9 @@ GRANT ALTER, CREATE, DELETE, DROP, INDEX, INSERT, SELECT, UPDATE ON `vaultwarden FLUSH PRIVILEGES; ``` -### Migrating from SQLite to MySQL +
+ +## Migrating from SQLite to MySQL An easy way of migrating from SQLite to MySQL has been described in this [issue comment](https://github.com/dani-garcia/vaultwarden/issues/497#issuecomment-511827057). The steps are repeated below. Please, note that you are using this at your own risk and you are strongly advised to backup your installation and data!