Update Moodle 3.6 to Use MariaDB
Moodle users may get an error while attempting to upgrade. This may be due to Moodle looking for MariaDB while MySQL is installed. This is more common on shared server accounts as Dedicated / VPS hosting users can upgrade to MariaDB anytime. Below we'll configure Moodle for MariaDB.
Looking for cheaper but full-featured website hosting? Check out our VPS Hosting after fixing your Moodle error.
- Log into your server via cPanel File Manager, FTP, or SSH.
- Navigate to your Moodle directory.
- Edit the Moodle config.php file.
- Change the following two lines:
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
- Save your changes.
You are NOT logged in. You can still browse our Support Center.
To participate within our Community Support Forum: