Jump to content

Manual:$wgDBTableOptions/ru

From mediawiki.org
This page is a translated version of the page Manual:$wgDBTableOptions and the translation is 20% complete.
Outdated translations are marked like this.
MySQL-specific: $wgDBTableOptions
MySQL table options to use during installation or update.
Введено в версии:1.10.0 (r21466)
Удалено в версии:всё ещё используется
Допустимые значения:(строка)
Значение по умолчанию:see below

Детали

Параметры таблицы MySQL для использования во время установки или обновления. $wgDBTableOptions будет установлен в файл LocalSettings.php генерируемого инсталлятором. Вы можете выбрать один из следующих вариантов значений:

MySQL binary
ENGINE=InnoDB, DEFAULT CHARSET=binary
MySQL UTF-8
ENGINE=InnoDB, DEFAULT CHARSET=utf8
No matter which value is selected here, MediaWiki internally always produces data in UTF-8 encoding to be saved in the database. Thus a conversion is never needed. Since binary charsets prevent MySQL from doing charset conversions, which otherwise unnecessarily might take place, the recommended setting is the default setting.
The keyword "TYPE" was deprecated and is no longer supported by current MySQL versions (≥5.5). If you then use the "TYPE" keyword anyway, you will get an error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near "TYPE=InnoDB"". The solution is to use the keyword "ENGINE" instead of "TYPE".
Версия MediaWiki:
1.18

The following setting is no longer available in current versions due to dropped MySQL 4 support:

MySQL 4.0 backwards-compatible UTF-8
TYPE=InnoDB

Default value

Версия MediaWiki:
1.32
$wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
Версии MediaWiki:
1.13 – 1.31
$wgDBTableOptions = 'ENGINE=InnoDB';
Версии MediaWiki:
1.10 – 1.12
$wgDBTableOptions = 'TYPE=InnoDB';