MySQLi module
Last updated on
14 April 2026
The MySQLi module provides the connection between Drupal and a MySQL, MariaDB or equivalent database. It has no UI or user configurable options. It is currently experimental and not meant for use in production.
To use MySQLi change settings.php as follows, changing the database, username, passwords, and host to suit your environment.
$databases['default']['default'] = array (
'database' => 'db',
'username' => 'db',
'password' => 'db',
'host' => 'db',
'prefix' => '',
'driver' => 'mysqli',
'namespace' => 'Drupal\\mysqli\\Driver\\Database\\mysqli',
'autoload' => 'core/modules/mysqli/src/Driver/Database/mysqli/',
'dependencies' => array(
'mysql' => array(
'namespace' => 'Drupal\\mysql',
'autoload' => 'core/modules/mysql/src/',
),
),
)Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion