MysqlInstaller: use default character set of utf8
Bug: 14931 Change-Id: Ied512a75d17b401206b6439f289fe36c01536cec
This commit is contained in:
parent
f14144aa74
commit
2ab7c9ec3b
2 changed files with 7 additions and 3 deletions
|
|
@ -312,6 +312,8 @@ production.
|
|||
* (bug 26811) On DB error pages, server hostnames are now hidden when both
|
||||
$wgShowHostnames and $wgShowSQLErrors are false.
|
||||
* (bug 6200) line breaks in <blockquote> are handled like they are in <div>
|
||||
* (bug 14931) Default character set now set to 'utf8' when a new MySQL
|
||||
database is created.
|
||||
|
||||
=== API changes in 1.22 ===
|
||||
* (bug 25553) The JSON output formatter now leaves forward slashes unescaped
|
||||
|
|
|
|||
|
|
@ -89,8 +89,10 @@ class MysqlInstaller extends DatabaseInstaller {
|
|||
return $this->getTextBox( 'wgDBserver', 'config-db-host', array(), $this->parent->getHelpBox( 'config-db-host-help' ) ) .
|
||||
Html::openElement( 'fieldset' ) .
|
||||
Html::element( 'legend', array(), wfMessage( 'config-db-wiki-settings' )->text() ) .
|
||||
$this->getTextBox( 'wgDBname', 'config-db-name', array( 'dir' => 'ltr' ), $this->parent->getHelpBox( 'config-db-name-help' ) ) .
|
||||
$this->getTextBox( 'wgDBprefix', 'config-db-prefix', array( 'dir' => 'ltr' ), $this->parent->getHelpBox( 'config-db-prefix-help' ) ) .
|
||||
$this->getTextBox( 'wgDBname', 'config-db-name', array( 'dir' => 'ltr' ),
|
||||
$this->parent->getHelpBox( 'config-db-name-help' ) ) .
|
||||
$this->getTextBox( 'wgDBprefix', 'config-db-prefix', array( 'dir' => 'ltr' ),
|
||||
$this->parent->getHelpBox( 'config-db-prefix-help' ) ) .
|
||||
Html::closeElement( 'fieldset' ) .
|
||||
$this->getInstallUserBox();
|
||||
}
|
||||
|
|
@ -475,7 +477,7 @@ class MysqlInstaller extends DatabaseInstaller {
|
|||
$conn = $status->value;
|
||||
$dbName = $this->getVar( 'wgDBname' );
|
||||
if ( !$conn->selectDB( $dbName ) ) {
|
||||
$conn->query( "CREATE DATABASE " . $conn->addIdentifierQuotes( $dbName ), __METHOD__ );
|
||||
$conn->query( "CREATE DATABASE " . $conn->addIdentifierQuotes( $dbName ) . "CHARACTER SET utf8", __METHOD__ );
|
||||
$conn->selectDB( $dbName );
|
||||
}
|
||||
$this->setupSchemaVars();
|
||||
|
|
|
|||
Loading…
Reference in a new issue