Mediawiki Windows 安装实例常见安装问题

登录或创建页面白屏,或者编辑页面时提示:来自于函数 "Parser::replaceLinkHolders"。 MySQL返回错误 "1267: Illegal mix of collations (utf8_bin,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation ‘ IN ‘ (localhost)"。 来自于函数 "Parser::replaceLinkHolders"。 MySQL返回错误 "1271: Illegal mix of collations for operation ‘ IN ‘ (localhost)"。多为windows路径解析错误

在localsettings.php里面找到如下内容,并修改为第一行加#号、第二行取消#号。[code]$wgArticlePath = “$wgScript/$1”;

$wgArticlePath = “$wgScript?title=$1”;[/code]备注:此方法可能不适用于1.8版 因为在1.8的localsettings.php文件中就是上面修改后的代码 所以问题不一定出在这里。