diff --git a/lib/dml/mysqli_native_moodle_database.php b/lib/dml/mysqli_native_moodle_database.php index b66f576135ee6..c99e98fd0a4a0 100644 --- a/lib/dml/mysqli_native_moodle_database.php +++ b/lib/dml/mysqli_native_moodle_database.php @@ -404,6 +404,10 @@ public function is_compressed_row_format_supported($cached = true) { } else if ($this->get_row_format() !== 'Barracuda') { $this->compressedrowformatsupported = false; + } else if ($this->get_dbtype() === 'auroramysql') { + // Aurora MySQL doesn't support COMPRESSED and falls back to COMPACT if you try to use it. + $this->compressedrowformatsupported = false; + } else { // All the tests passed, we can safely use ROW_FORMAT=Compressed in sql statements. $this->compressedrowformatsupported = true;