Reputation:
I am running a magento 2.4 project but current not in position to update mysql version. any way to skip that error ?
Magento 2 error Current version of RDBMS is not supported. Used Version: 10.1.37-MariaDB. Supported versions: MySQL-8, MySQL-5.7, MariaDB-(10.2-10.4)
Upvotes: 16
Views: 24110
Reputation: 86
You could override module to allow MariaDB 10.5 to 10.9 support for development...
composer require reessolutions/db-override:*
(Source: https://github.com/Sental/db-override)
This has worked for me.
Upvotes: 1
Reputation: 835
An alternative solution if you are in a bind.
Edit file app/etc/di.xml
You can specify acceptable MariaDB versions here - currently 10.2-10.4
Example to allow MariaDB 10.11
<item name="MariaDB-(10.2-10.11)" xsi:type="string">^10\.([2-9]|10|11)\.</item>
Upvotes: 47
Reputation: 21
If you are using MariaDB version greater than 10.9, as example 10.11.3 you have to extend the regexp in app/etc/di.xml like following:
<item name="MariaDB-(10.2-10.5)" xsi:type="string">^10\.[2-9]|10|11\.</item>
BTW my Magento is working correctly with MariaDB 10.11.3
Upvotes: 1
Reputation: 343
Yes you can try to change one file but can be some issues can occur in project while running.
Go to Vendor/Magento/Framework/DB/Adapter/SqlVersionProvider.php
Update function getVersionString and replace line
$sqlVersionOutput = $this->fetchSqlVersion($resource);
to
$sqlVersionOutput = '10.2.37-MariaDB';
This is temporary solution. So you should consider to update mysql version.
Upvotes: 5