From d07a30fc73d44715600de104b2bcf2d878f8de9f Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 6 Nov 2023 08:19:49 +1100 Subject: [PATCH] Database installation - MariaDB use mariadb / no FLUSH PRIVILEGES MariaDB is deprecating off its mysql client usage (has been a symlink for a very long time). FLUSH PRIVILEGES aren't required after any creation of users or grants. It has only two very specific meenings that aren't the case here; when credentials are directly changes in underlying tables using DML, or the server was started with --skip-grant-tables and this is ending that lack of priv scheme. Signed-off-by: Daniel Black --- .../configuration_database/linux_database_configuration.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin_manual/configuration_database/linux_database_configuration.rst b/admin_manual/configuration_database/linux_database_configuration.rst index 0d77289d9..d0bba8376 100644 --- a/admin_manual/configuration_database/linux_database_configuration.rst +++ b/admin_manual/configuration_database/linux_database_configuration.rst @@ -127,6 +127,10 @@ To start the MySQL command line mode use:: mysql -uroot -p +When using MariaDB use:: + + mariadb -uroot -p + Then a **mysql>** or **MariaDB [root]>** prompt will appear. Now enter the following lines and confirm them with the enter key: :: @@ -134,7 +138,6 @@ Then a **mysql>** or **MariaDB [root]>** prompt will appear. Now enter the follo CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; GRANT ALL PRIVILEGES on nextcloud.* to 'username'@'localhost'; - FLUSH privileges; You can quit the prompt by entering::