Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-30 14:57:04 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-10-19 01:15:01 +0300
commitcc28f82b369c2e8ebf2d0b4390379b9cda4af40b (patch)
tree3681f1e92af5a4bc0c581d3314e5cb37b00dd63a /config
parent972e560e7274cf25021b1a5095206640b063789a (diff)
Add config option to update charset of mysql to utf8mb4
* fully optional * requires additional options set in the database
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 3aa0f353c59..df1e2d16fc0 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -129,6 +129,7 @@ $CONFIG = array(
*/
'dbtableprefix' => '',
+
/**
* Indicates whether the Nextcloud instance was installed successfully; ``true``
* indicates a successful installation, and ``false`` indicates an unsuccessful
@@ -1080,6 +1081,34 @@ $CONFIG = array(
'sqlite.journal_mode' => 'DELETE',
/**
+ * If this setting is set to true MySQL can handle 4 byte characters instead of
+ * 3 byte characters
+ *
+ * MySQL requires a special setup for longer indexes (> 767 bytes) which are
+ * needed:
+ *
+ * [mysqld]
+ * innodb_large_prefix=true
+ * innodb_file_format=barracuda
+ * innodb_file_per_table=true
+ *
+ * Tables will be created with
+ * * character set: utf8mb4
+ * * collation: utf8mb4_bin
+ * * row_format: compressed
+ *
+ * See:
+ * https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html
+ * https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_large_prefix
+ * https://mariadb.com/kb/en/mariadb/xtradbinnodb-server-system-variables/#innodb_large_prefix
+ * http://www.tocker.ca/2013/10/31/benchmarking-innodb-page-compression-performance.html
+ * http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/
+ *
+ * WARNING: EXPERIMENTAL
+ */
+'mysql.utf8mb4' => false,
+
+/**
* Database types that are supported for installation.
*
* Available: