phpmysqlimariadbxamppmoodle

Wrong $CFG->dbtype. You need to change it in your config.php file from 'mysqli' to 'mariadb'


I am trying to install Moodle the last version of Moodle 4.4.2, and everything except the database keeps telling me that I should change mysqli to MariaDB in the config.php file. I have MySQL installed with the XAMPP on my PC and I don't have MariaDB. I don't want to use it and I have no idea why it keeps showing me this error!

enter image description here

I tried to do as the msg says and changed mysqli to MariaDB and installed MariaDB but it didn't work maybe due to a configuration problem. Please don't tell me to switch to MariaDB I want to keep using MySQL for the project.


Solution

  • I finally fixed the problem, first I changed mysqli to mariadb in config.php then I went to mysqli_native_moodle_database.php and affected the string "10.6.7" to the variable $serverversion and now it's working fine.

    And of course, I downloaded MariaDB 10.6.7 before.