Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85316

Update AWS Aurora MySQL version support

XMLWordPrintable

    • 6
    • Team Hedgehogs 2025 Sprint 2.1, Team Hedgehogs 2025 Sprint 2.2

      Background

      AWS Aurora is Amazon's highly scalable and highly available SQL DB service. It used by mainly organisations to host their Moodle LMS instances. Essentially it is a fork of the community versions of MySQL and Postgres (both engines are available). AWS then essentially adds their own patches (security etc).

      For the most part Aurora is feature compatible with the community version of the database engine (either MySQL or Postgres).

      In LMS 3.10 (MDL-58931) explicit support was added for Aurora MySQL. This is essentially a thin wrapper around the existing MySQL drivers. This allowed auroramysql to by set as the dbtype in config.php and fixed some compatibility issues that were present at the time. The code has not changed much since then.

      Historically, AWS have been slow to update the major version of MySQL used by Aurora, instead they have tended to backport patches.  They do upgrade the major version eventually.

      Problem

      In LMS 5.0 the minimum version of MySQL required was upped from 8.0 to 8.4 (see MDL-83470), this was due to the impending EOL for MySQL 8.0 (as part of the LMS lifecycle) and that 8.4 has been released for more than 12 months.

      However, AWS Aurora only supports at a maximum MySQL 8.0.39.
      See: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/AuroraMySQL.release-calendars.html

      This means that anyone using AWS Aurora MySQL cannot install or upgrade currently to LMS 5.0, without hacking the environment.xml file or changing to Postgres.

      Proposed Solution

      Update the support introduced MDL-58931 to allow AWS Aurora with a minimum version of 3 for LMS 5.0

      This will also require including this in the LMS requirements policy going forward.

      Update documentation etc. that for organisations using AWS Aurora MySQL to explicitly set the dbtype in config.php to auroramysql

      More info:

        1. MDL-85316_401_test1_step10.png
          MDL-85316_401_test1_step10.png
          428 kB
        2. MDL-85316_401_test1_step8-9.png
          MDL-85316_401_test1_step8-9.png
          420 kB
        3. MDL-85316_401_test2_step6.png
          MDL-85316_401_test2_step6.png
          400 kB
        4. MDL-85316_401_test2_step7.png
          MDL-85316_401_test2_step7.png
          404 kB
        5. MDL-85316_404_test1_step10.png
          MDL-85316_404_test1_step10.png
          378 kB
        6. MDL-85316_404_test1_step8-9.png
          MDL-85316_404_test1_step8-9.png
          364 kB
        7. MDL-85316_404_test2_step6.png
          MDL-85316_404_test2_step6.png
          369 kB
        8. MDL-85316_404_test2_step7.png
          MDL-85316_404_test2_step7.png
          373 kB
        9. MDL-85316_405_test1_step10.png
          MDL-85316_405_test1_step10.png
          378 kB
        10. MDL-85316_405_test1_step8-9.png
          MDL-85316_405_test1_step8-9.png
          365 kB
        11. MDL-85316_405_test2_step6.png
          MDL-85316_405_test2_step6.png
          369 kB
        12. MDL-85316_405_test2_step7.png
          MDL-85316_405_test2_step7.png
          373 kB
        13. MDL-85316_500_test1_step10.png
          MDL-85316_500_test1_step10.png
          372 kB
        14. MDL-85316_500_test2_step7.png
          MDL-85316_500_test2_step7.png
          364 kB
        15. MDL-85316_engine_version.png
          MDL-85316_engine_version.png
          86 kB
        16. MDL-85316_main_Installation.png
          MDL-85316_main_Installation.png
          393 kB
        17. MDL-85316_new_checks.png
          MDL-85316_new_checks.png
          586 kB

            meirza.arson@moodle.com Meirza
            matt.porritt@moodle.com Matt Porritt
            Stevani Andolo Stevani Andolo
            Huong Nguyen Huong Nguyen
            Raquel Ortega Raquel Ortega
            Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 4 hours, 46 minutes
                4d 4h 46m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.