Magento2 Compatible MariDB version for Magento 2.4

September 28, 2021 . 1 MIN READ

Compatible MariDB version for Magento 2.4

You Can modify the file: vendor/magento/framework/Test/Unit/DB/Adapter/SqlVersionProviderTest.php (Approximately Line 109 and add the MariaDB 10.5 Version to the Array:

'MariaDB-10.5' => [
                ['version' => '10.5.8-MariaDB-1:10.5.8+maria~bionic'],
                '10.5.'
            ],

and update the file: app/etc/di.xml (approximately Line 1818):

<item name="MariaDB-(10.2-10.5)" xsi:type="string">^10\.[2-5]\.</item>

from:

<item name="MariaDB-(10.2-10.4)" xsi:type="string">^10\.[2-4]\.</item>

Now I will note, it is NOT advisable to mode core files, however if you want it to run on MariaDB 10.5, that’s how you can tackle it.

Leave a Reply

Your email address will not be published. Required fields are marked *