After making an update to a moodle portal, when trying to update the database from an old version to a new one, the following error appears: Moodle mysql update failed
mysql version: version 5.5.31 is required and you are running 5.5.5.10.1.10
The problem that is indicated is that the version of mysql installed is not correct, when it is not, when investigating a bit by google, I have detected that what is usually done is copying the old configuration file config.php, in this one The database driver indicated is mysqli, when in reality what should appear is that the driver is mariadb .
By changing this, it should work correctly, perform the update and it would not show the message again.