From 9bea45eab77f731aaba56b69aa9432f41d199ef8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 19 Sep 2018 15:38:28 +1000 Subject: [PATCH] Use binary charset in default table options $wgDBTableOptions is overridden in the installer-generated LocalSettings.php, and is always set to binary now that the installer UI option has been removed. However, the value from DefaultSettings.php is used when the installer installs an extension, since in this case DatabaseUpdater is called without reading the generated LocalSettings.php. Binary is almost certainly the right answer since many extensions can't even be installed without this option, they hit a key length error. Change-Id: I87df736a4d9e49c9535d55bd556e636500ca203f --- includes/DefaultSettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index ab67225ca5..6515083b80 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1931,7 +1931,7 @@ $wgDBprefix = ''; /** * MySQL table options to use during installation or update */ -$wgDBTableOptions = 'ENGINE=InnoDB'; +$wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary'; /** * SQL Mode - default is turning off all modes, including strict, if set. -- 2.20.1