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`.
This commit is contained in:
SENOO, Ken 2020-09-12 17:14:33 +09:00 committed by Diogo Peralta Cordeiro
parent a0f72fe5c6
commit 0b4a49d262

View File

@ -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());