Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.

Get Started Now!

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

The error message you’re encountering indicates that the database type in your Moodle config.php file is set to 'mysqli', but it needs to be changed to 'mariadb'. To fix this, follow these steps:

  1. Open the config.php file located in your Moodle installation directory.
  2. Locate the line that specifies the database type, which will look something like this: $CFG->dbtype = 'mysqli';
  3. Change 'mysqli' to 'mariadb', so it looks like this: $CFG->dbtype = 'mariadb';
  4. Save the config.php file.
  5. Try accessing your Moodle site again to see if the issue is resolved.

This change tells Moodle to use the MariaDB driver instead of MySQL, which should resolve the error if you are using MariaDB as your database.

Related Posts

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Artificial Intelligence
0
Would love your thoughts, please comment.x
()
x