From 2254e67e979a26e0b1ca602f2b719987906b8864 Mon Sep 17 00:00:00 2001 From: "rieger::CLOUD" Date: Mon, 9 Jul 2018 18:29:56 +0200 Subject: [PATCH] UTF8MB4 amendments added create statements and config.php value. --- .../linux_database_configuration.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/admin_manual/configuration_database/linux_database_configuration.rst b/admin_manual/configuration_database/linux_database_configuration.rst index 233b3cde7..1282a0eb0 100644 --- a/admin_manual/configuration_database/linux_database_configuration.rst +++ b/admin_manual/configuration_database/linux_database_configuration.rst @@ -134,11 +134,25 @@ 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; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password'; + FLUSH privileges; You can quit the prompt by entering:: quit +If you prefer UTF8MB4 as your preferred collation setting instead: + +:: + +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:: + + quit; + An Nextcloud instance configured with MySQL would contain the hostname on which the database is running, a valid username and password to access it, and the name of the database. The :file:`config/config.php` as created by the @@ -156,6 +170,10 @@ this: "dbhost" => "localhost", "dbtableprefix" => "oc_", +In case of UTF8MB4 you will also find:: + + "mysql.utf8mb4" => true, + PostgreSQL database ^^^^^^^^^^^^^^^^^^^