function Tasks::ensureInnoDbAvailable
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php \Drupal\Core\Database\Driver\mysql\Install\Tasks::ensureInnoDbAvailable()
- 10 core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php \Drupal\mysql\Driver\Database\mysql\Install\Tasks::ensureInnoDbAvailable()
- 11.x core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php \Drupal\mysql\Driver\Database\mysql\Install\Tasks::ensureInnoDbAvailable()
Ensure that InnoDB is available.
File
-
core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Install/ Tasks.php, line 184
Class
- Tasks
- Specifies installation tasks for MySQL and equivalent databases.
Namespace
Drupal\mysql\Driver\Database\mysql\InstallCode
public function ensureInnoDbAvailable() {
$engines = Database::getConnection()->query('SHOW ENGINES')
->fetchAllKeyed();
if (isset($engines['MyISAM']) && $engines['MyISAM'] == 'DEFAULT' && !isset($engines['InnoDB'])) {
$this->fail(t('The MyISAM storage engine is not supported.'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.