From c2508f8fa2f0c5b25443fa5ce3b8c32922cb9f96 Mon Sep 17 00:00:00 2001 From: "SENOO, Ken" Date: Sat, 12 Sep 2020 17:14:33 +0900 Subject: [PATCH] Change required MySQL database character set variable Changing `character_set_server` requires root permissions and rebooting the server. Which is impossible on shared web hosting services. So use `character_set_database`. This variable can be changed with user permissions using `ALTER DATABASE`. --- lib/util/installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/installer.php b/lib/util/installer.php index b4b8f21249..dfe121ba80 100644 --- a/lib/util/installer.php +++ b/lib/util/installer.php @@ -383,7 +383,7 @@ abstract class Installer break; case 'mysql': $res = $conn->query( - "SHOW SESSION VARIABLES LIKE 'character_set_server'" + "SHOW SESSION VARIABLES LIKE 'character_set_database'" ); if (MDB2::isError($res)) { throw new Exception($res->getMessage());