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)
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.
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.5
<item name="MariaDB-(10.2-10.5)" xsi:type="string">^10\.[2-5]\.</item>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With