I was following Set up Demo Site for Theming Practice; then, I realized that, since Drupal 9 is out, by default Drupal 9 is installed instead of Drupa 8.x is installed when running composer create-project drupal/recommended-project $SITE_NAME.

So I continued along. I was fine, until I came to the install local site. I got this error:

The database server version 10.2.31-MariaDB-1:10.2.31+maria~bionic-log is less than the minimum required version 10.3.7.

Since I'm using ddev and docker, does this mean I need to upgrade my MariaDB version used inside of my image? if so, how do I do that?

A step by step solution explaining each step would be really helpful.

2 Answers 2


Yes, you need to update MariaDB. Just "cd" to your ddev project directory in the terminal and issue the following commands:

ddev config --mariadb-version=10.4

and then

ddev restart

That's it! Good luck:)


You can edit the version of mariaDB used in .ddev/config.yaml.

  type: mariadb
  version: "10.6"

Then ddev restart to pull in the new mariaDB docker image.

Note that ddev is now only supporting LTS versions of mariaDB, so if you are developing on a SaaS such as PlatformSH that offers support for non-LTS versions of mariaDB, you may need to change the ddev mariaDB version to something that ddev supports. Some ddev addons may automatically convert the ddev version for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.