-
Bug
-
Resolution: Fixed
-
Major
-
2.9.1, 3.0.3, 3.4.3, 3.5, 3.6
-
MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
m36_
MDL-51080_MAriaDB_Wrong_DB_Type -
Easy
-
When upgrading Moodle, it checks the database version.
Some OSes (at least Fedora and Ubuntu) have switched from MySql to MariaDB. Moodle supports both.
But if moodle was configured to use mysql (installed in a prior OS version), the OS changes to MariaDB, and moodle doesn't, then moodle will fail to upgrade.
This problem was reported at http://www.learnbydoingit.org/2015/01/moodle-version-5-5-31-required-running-5-5-5-10-0-x/
with the fix: change dbtype to mariadb in config.php.
WHAT ACTUALLY HAPPENS:
Moodle's upgrade check gives only the error: "version 5.5.31 is required and you are running 5.5.5.10.0.20". This error leads to things like issue #45070 and not the fix in the blog.
WHAT SHOULD HAPPEN: the mysql-version checking code should generate an explicit recommendation "please change dbtype to mariadb in config.php" if it detects -10. in the version string.
STEPS TO REPRODUCE: install moodle-2.8 on an OS with mysql (say, fedora 18). Upgrade the OS to pick up maria db (say, fedora 19 or later). Upgrade Moodle. Hilarity ensues.
- caused a regression
-
MDL-68400 Wrong indication (mysql instead of mysqli) during install when database type isn't right
- Closed
- has been marked as being related by
-
MDL-61702 Can't install Moodle version > 3.1 with mariaDB version >= 10.3.1
- Closed
-
MDL-43604 add support for MariaDB 10.x
- Closed
-
MDL-69581 Azure hosted MariaDB and MySQL instances report the wrong version number
- Closed
- is duplicated by
-
MDL-53496 Moodle upgrade to 3.0.2 from 3.0.1 do not support MariaDB Version 10.0.24
- Closed
- Testing discovered
-
MDL-62824 Review <code> styling, specially when used over non-white backgrounds like notifications
- Closed
- will help resolve
-
MDL-49275 Cannot install/upgrade with MariaDB
- Closed
-
MDL-61263 Windows bundle 3.2.7 and site upgrade
- Closed