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 Alexei Sorokin
parent 52d67b0f44
commit c2508f8fa2

View File

@ -383,7 +383,7 @@ abstract class Installer
break; break;
case 'mysql': case 'mysql':
$res = $conn->query( $res = $conn->query(
"SHOW SESSION VARIABLES LIKE 'character_set_server'" "SHOW SESSION VARIABLES LIKE 'character_set_database'"
); );
if (MDB2::isError($res)) { if (MDB2::isError($res)) {
throw new Exception($res->getMessage()); throw new Exception($res->getMessage());