Manual:$wgDBmysql5/tr
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.33.0</tvar>.</translate> |
<translate> MySQL-specific</translate>: $wgDBmysql5 | |
---|---|
Set to true to set MySQL connection into UTF-8 encoding (experimental) |
|
<translate> Introduced in version:</translate> | 1.5.1 (r11508) |
<translate> Deprecated in version:</translate> | 1.31.0 (Gerrit change 437312; git #7271d50b) |
<translate> Removed in version:</translate> | 1.33.0 (Gerrit change 498644; git #26118ad0) |
<translate> Allowed values:</translate> | (boole) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
Note beforehand: No matter what you set here, MediaWiki internally always uses UTF-8 encoding. Everything MediaWiki sends to the database is always in UTF-8 encoding.
Set to true to send 'SET NAMES=utf8;' on connect. If set to false, 'SET NAMES binary;' will be used, which is the default and so recommended. Generally you should not change this value once installed -- if you created the wiki in Binary or UTF-8 schemas, you should keep this off. The feature is experimental and with your settings the data is sent (and so also finally saved) with the right encoding anyway.
(See also $wgDBTableOptions which in recentish versions will include the table type and character set used when creating tables.)
May break if you're upgrading an existing wiki and then change this setting. Symptoms of brokenness are likely to include incorrect behavior with page titles, usernames, comments etc containing non-ASCII characters. Might also cause failures on the object cache and other things.
If you are still using MySQL 4, your wiki was created with the old "MySQL 4 backwards-compatible UTF-8" schema and $wgDBmysql5 should stay off; your MySQL version does not support it anyway.
- MediaWiki configuration settings/tr
- MediaWiki configuration settings introduced in version 1.5.1/tr
- MediaWiki configuration settings deprecated in version 1.31.0/tr
- MediaWiki configuration settings removed in version 1.33.0/tr
- Pages with broken file links
- MediaWiki deprecated or obsolete features/tr
- MySQL specific variables/tr