summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-03-24 16:06:21 +0100
committerSimon Rettberg2022-03-24 16:06:21 +0100
commita3a266d32a27972c52e3239b72fa98659b3eb331 (patch)
tree5c8c7c091b835301931ab8485778fd601f801d64
parent[SSPS] slx-admin: Set charset via connect string, so php knows about it (diff)
downloadsetup-scripts-a3a266d32a27972c52e3239b72fa98659b3eb331.tar.gz
setup-scripts-a3a266d32a27972c52e3239b72fa98659b3eb331.tar.xz
setup-scripts-a3a266d32a27972c52e3239b72fa98659b3eb331.zip
[SSPS] slxadmin mysql force utf8mb4
-rw-r--r--satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php b/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php
index a239fef..149041a 100644
--- a/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php
+++ b/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php
@@ -7,7 +7,7 @@ define('CONFIG_SESSION_DIR', '/tmp/openslx');
define('CONFIG_SESSION_TIMEOUT', 86400 * 3);
// Put your mysql credentials here
-define('CONFIG_SQL_DSN', 'mysql:dbname=openslx;host=localhost');
+define('CONFIG_SQL_DSN', 'mysql:dbname=openslx;host=localhost;charset=utf8mb4');
define('CONFIG_SQL_USER', 'openslx');
define('CONFIG_SQL_PASS', '%MYSQL_OPENSLX_PASS%');
// Set this to true if you mysql server doesn't default to UTF-8 on new connections