mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
UTF8MB4 amendments
added create statements and config.php value.
This commit is contained in:
@@ -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
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user