Drupal MySQL 8 Migration Guide: Compatibility, Testing, and Hosting Considerations

Online education distant courses flat illustration with university graduateOnline education distant courses flat illustration with university graduate
macrovector / Freepik

Ricardo Sanz of Metadrop provides a practical guide for upgrading Drupal sites from MySQL 5.7 to MySQL 8, a transition now especially relevant for Acquia-hosted projects. While Drupal 10 and 11 have long supported MySQL 8, the article cautions that contributed modules, legacy configurations, and custom code may still pose risks.

Sanz stresses thorough testing with real data in development environments, ideally supported by automated tests, to catch issues such as reserved keywords (groups), deprecated settings like tx_isolation, or collation differences affecting Unicode. Tools such as Aljibe (a DDEV extension for version-switching and automated testing) and Acquia’s MySQL 5.7/MariaDB compatibility driver can ease the migration process. The article also addresses special considerations for Drupal 7 sites and outlines environment-specific strategies for providers including Platform.sh, Pantheon, amazee.io, and AWS.

Reference: Migrating Drupal from MySQL 5.7 to MySQL 8, Metadrop (1 September 2025)

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Upcoming Events

Latest Opportunities