From a74bcccfb7014d952cf5a59831d9bace81866dd7 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 21 Mar 2019 09:08:46 +0100 Subject: [PATCH] Enabling MySQL 4-byte support --- tasks/install.yml | 2 ++ templates/config.php.jinja2 | 1 + 2 files changed, 3 insertions(+) diff --git a/tasks/install.yml b/tasks/install.yml index eb2b8e7..c390c32 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -191,6 +191,8 @@ login_password: '{{ mysql_root_password|default("root") }}' login_host: '127.0.0.1' login_port: '{{ nextcloud.db_port|default("3306") }}' + collation: 'utf8mb4_general_ci' + encoding: 'utf8mb4' state: 'present' with_items: - 'nextcloud' diff --git a/templates/config.php.jinja2 b/templates/config.php.jinja2 index 354b5f8..16d2c9d 100644 --- a/templates/config.php.jinja2 +++ b/templates/config.php.jinja2 @@ -53,4 +53,5 @@ $CONFIG = array ( 'htaccess.RewriteBase' => '/', 'memcache.local' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', + 'mysql.utf8mb4' => true, ); -- GitLab