UTF8MB4 amendments

added create statements and config.php value.
This commit is contained in:
rieger::CLOUD
2018-07-09 18:29:56 +02:00
committed by GitHub
parent 33e84c4ca3
commit 2254e67e97

View File

@@ -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
^^^^^^^^^^^^^^^^^^^