aboutsummaryrefslogtreecommitdiffstats
path: root/includes/installer/MysqlInstaller.php
diff options
context:
space:
mode:
authorAaron Schulz <aschulz@wikimedia.org>2019-06-29 00:58:02 -0700
committerAaron Schulz <aschulz@wikimedia.org>2019-07-20 18:19:17 -0700
commitb12b7e4ddb74304c284a3565272d58f2de95d470 (patch)
treebe9f6716bb1f11228d270b63e68a9ba344fe8bf1 /includes/installer/MysqlInstaller.php
parent9fb027f9a4cd68cf6e810fa5d8360adb35b5e333 (diff)
downloadmediawikicore-b12b7e4ddb74304c284a3565272d58f2de95d470.tar.gz
mediawikicore-b12b7e4ddb74304c284a3565272d58f2de95d470.zip
installer: Stop offering MyISAM option for new installs and fix bogus method calls
The methods were renamed in 2010 (r68908, c4100fb83b5b12bd). Change-Id: I076ec8d9c11f5bd33cb0ad19e5be8e239401b9c6
Diffstat (limited to 'includes/installer/MysqlInstaller.php')
-rw-r--r--includes/installer/MysqlInstaller.php44
1 files changed, 3 insertions, 41 deletions
diff --git a/includes/installer/MysqlInstaller.php b/includes/installer/MysqlInstaller.php
index 3013db78bc85..69d03bde6c4d 100644
--- a/includes/installer/MysqlInstaller.php
+++ b/includes/installer/MysqlInstaller.php
@@ -48,7 +48,7 @@ class MysqlInstaller extends DatabaseInstaller {
'_InstallUser' => 'root',
];
- public $supportedEngines = [ 'InnoDB', 'MyISAM' ];
+ public $supportedEngines = [ 'InnoDB' ];
public static $minimumVersion = '5.5.8';
protected static $notMinimumVersionMessage = 'config-mysql-old';
@@ -142,6 +142,7 @@ class MysqlInstaller extends DatabaseInstaller {
public function openConnection() {
$status = Status::newGood();
try {
+ /** @var DatabaseMysqlBase $db */
$db = Database::factory( 'mysql', [
'host' => $this->getVar( 'wgDBserver' ),
'user' => $this->getVar( '_InstallUser' ),
@@ -162,7 +163,7 @@ class MysqlInstaller extends DatabaseInstaller {
$status = $this->getConnection();
if ( !$status->isOK() ) {
- $this->parent->showStatusError( $status );
+ $this->parent->showStatusMessage( $status );
return;
}
@@ -364,45 +365,6 @@ class MysqlInstaller extends DatabaseInstaller {
$this->setVar( '_MysqlEngine', reset( $engines ) );
}
- $s .= Xml::openElement( 'div', [
- 'id' => 'dbMyisamWarning'
- ] );
- $myisamWarning = 'config-mysql-myisam-dep';
- if ( count( $engines ) === 1 ) {
- $myisamWarning = 'config-mysql-only-myisam-dep';
- }
- $s .= $this->parent->getWarningBox( wfMessage( $myisamWarning )->text() );
- $s .= Xml::closeElement( 'div' );
-
- if ( $this->getVar( '_MysqlEngine' ) != 'MyISAM' ) {
- $s .= Xml::openElement( 'script' );
- $s .= '$(\'#dbMyisamWarning\').hide();';
- $s .= Xml::closeElement( 'script' );
- }
-
- if ( count( $engines ) >= 2 ) {
- // getRadioSet() builds a set of labeled radio buttons.
- // For grep: The following messages are used as the item labels:
- // config-mysql-innodb, config-mysql-myisam
- $s .= $this->getRadioSet( [
- 'var' => '_MysqlEngine',
- 'label' => 'config-mysql-engine',
- 'itemLabelPrefix' => 'config-mysql-',
- 'values' => $engines,
- 'itemAttribs' => [
- 'MyISAM' => [
- 'class' => 'showHideRadio',
- 'rel' => 'dbMyisamWarning'
- ],
- 'InnoDB' => [
- 'class' => 'hideShowRadio',
- 'rel' => 'dbMyisamWarning'
- ]
- ]
- ] );
- $s .= $this->parent->getHelpBox( 'config-mysql-engine-help' );
- }
-
// If the current default charset is not supported, use a charset that is
$charsets = $this->getCharsets();
if ( !in_array( $this->getVar( '_MysqlCharset' ), $charsets ) ) {