summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2017-03-21 13:08:14 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-28 09:35:36 +0200
commit86ccc8949f27f69f7ad895d345561567512a223a (patch)
tree893ef980259a91d7d2717df363b34351c791118c /lib/private/Setup
parent43427e26d78123e66652741d960c14cf40342715 (diff)
downloadnextcloud-server-86ccc8949f27f69f7ad895d345561567512a223a.tar.gz
nextcloud-server-86ccc8949f27f69f7ad895d345561567512a223a.zip
MySQL 4 byte is now detected during setup in any case.
config.sample.php was updated to explicitly state that there detection in place to set mysql.utf8mb4
Diffstat (limited to 'lib/private/Setup')
-rw-r--r--lib/private/Setup/MySQL.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php
index 3f3ad6d9589..8290d675500 100644
--- a/lib/private/Setup/MySQL.php
+++ b/lib/private/Setup/MySQL.php
@@ -38,12 +38,10 @@ class MySQL extends AbstractDatabase {
$connection = $this->connect(['dbname' => null]);
// detect mb4
- if (is_null($this->config->getValue('mysql.utf8mb4', null))) {
- $tools = new MySqlTools();
- if ($tools->supports4ByteCharset($connection)) {
- $this->config->setValue('mysql.utf8mb4', true);
- $connection = $this->connect();
- }
+ $tools = new MySqlTools();
+ if ($tools->supports4ByteCharset($connection)) {
+ $this->config->setValue('mysql.utf8mb4', true);
+ $connection = $this->connect();
}
$this->createSpecificUser($username, $connection);