Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

MySQL 5.7 and MariaDB 10.3 database driver

Security covered Under active development 10,437 sites

This module allows you to use Drupal 11 with older versions of MySQL and MariaDB, making it easier to upgrade from Drupal 10. It provides compatibility for MySQL 5.7.8+ and MariaDB 10.3.7+, which are the same requirements as Drupal 10.

The MySQL/MariaDB driver that's included in Drupal 11 core requires MySQL 8.0+ or MariaDB 10.6+.

This module lets you install and use Drupal 11 on MySQL 5.7.8+ and MariaDB 10.3.7+, which match Drupal 10's requirements. This makes it easier for people to upgrade from Drupal 10 to Drupal 11, even if you don't yet have access to the higher MySQL or MariaDB versions. If you do have access to the higher MySQL or MariaDB versions, it is recommended that you upgrade to that instead of using this module.

Instructions

1. Installation

composer require drupal/mysql57

2. Configuration

2.a Without a pre-existing settings.php file

If you are installing Drupal from scratch, without a pre-existing settings.php file, and allowing the installer to write the settings.php file for you, then just follow the installer's instructions, and it will write out settings.php with the information that's needed.

2.b With a pre-existing settings.php file

If you already have a settings.php file, then this driver's information needs to be defined in your database settings. Add the following to your settings.php file:

require DRUPAL_ROOT . '/modules/contrib/mysql57/settings.inc';
  • If your settings.php file defines the $databases variable, then add the above line after that definition.
  • If your settings.php file includes a require line that loads a hosting platform file that opens your database connection, then add the above line before that hosting platform require line.

3. Enable the module

Enable this module via /admin/modules.

Drupal 10–11

Ask your assistant about MySQL 5.7 and MariaDB 10.3 database driver

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • mysql Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
9
Tracked since
May 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Aug 2, 2024
1.0.0-rc1 Pre-release 10–11 Jul 3, 2024
1.0.0-beta4 Pre-release 10–11 Jun 11, 2024
1.0.0-beta3 Pre-release 10–11 Jun 11, 2024
1.0.0-beta2 Pre-release 10–11 Jun 5, 2024
1.0.0-beta1 Pre-release 10–11 Jun 5, 2024
1.0.0-alpha2 Pre-release 10–11 May 15, 2024
1.0.0-alpha1 Pre-release 11 May 13, 2024
1.0.x-dev Dev 10–11 May 13, 2024