Shopping cart

PrismaSell web development agency

Shopping cart

How to Fix Current version of RDBMS is not supported Error in Magento

By Prisma SellOct 16, 2024

When adding a new extension in Magento and running the setup:upgrade command, you might encounter the following error:

"Current version of RDBMS is not supported. Used Version: 10.6.18-MariaDB-cll-lve. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)."

This error occurs because Magento officially supports MariaDB versions 10.2 to 10.4. If your environment runs a newer MariaDB version (such as 10.6 or 10.11), Magento blocks it during the upgrade.

In this blog, we will cover a temporary fix and a permanent solution to resolve the issue.


Temporary Fix: Edit app/etc/di.xml

If you're in a bind and need to bypass the version check quickly, you can modify Magento’s configuration to allow newer MariaDB versions.

Steps to Allow MariaDB 10.6 or Higher:

  1. Open the di.xml file located in:app/etc/di.xml
  1. Search for the section where supported MariaDB versions are listed.
  2. Add or modify the entry to allow the versions you are using (e.g., MariaDB 10.6 or 10.11).

Example to Allow MariaDB 10.11:

<item name=MariaDB-(10.2-10.11) xsi:type="string">^10\.([2-9]|10|11)\.</item>

This change ensures that MariaDB versions from 10.2 to 10.11 are accepted by Magento during the upgrade process.

  1. Save the changes and re-run the following commands:

php bin/magento setup:upgrade
php bin/magento cache:flush