Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

The MySQL/MariaDB driver that's included in Drupal 9 and 10 core requires MySQL 5.7+ or MariaDB 10.3.7+.

This database driver lets you install and use Drupal 9 and 10 on MySQL 5.6 and MariaDB 10.0 and up.

Instructions

1. Installation

composer require drupal/mysql56

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 namespace needs to be defined in your database settings. Assuming you are using default as the Connection key and Target in your database connection, add the following to the bottom of your settings.php file:

$databases['default']['default']['namespace'] = 'Drupal\\mysql56\\Driver\\Database\\mysql';

Earlier versions of this driver used 'Drupal\\Driver\\Database\\mysql' as the namespace instead of the one above. If your settings.php file still refers to this older namespace, it's recommended to change it to the new one, but the old one still works.

See the Database Configuration documentation for more information about the Connection key and Target.

Support

This module supports and is fully tested with:

  • MySQL 5.6

It also allows:

  • Maria DB 10.2
  • Maria DB 10.1
  • Maria DB 10.0

However, due to limitations with testing infrastructure, the Maria DB versions are not fully tested. It is possible that Drupal will introduce an incompatibility with these versions. Use at your own risk.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Release Timeline

Releases

Version Type Core Release date
8.x-1.7 Stable Dec 15, 2023
8.x-1.6 Stable Jun 21, 2023
8.x-1.6-beta1 Pre-release May 11, 2023