From 3c60f8a0cede2e7cbc825a6c351ba646df308f21 Mon Sep 17 00:00:00 2001 From: Limekiller Date: Mon, 3 Jan 2022 11:38:08 -0500 Subject: [PATCH] MDL-73450 installation: Support Aurora MySQL >= 8.0.0 --- lib/dml/mysqli_native_moodle_database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dml/mysqli_native_moodle_database.php b/lib/dml/mysqli_native_moodle_database.php index c0d766cda19..a02e9b9d1ae 100644 --- a/lib/dml/mysqli_native_moodle_database.php +++ b/lib/dml/mysqli_native_moodle_database.php @@ -313,7 +313,7 @@ class mysqli_native_moodle_database extends moodle_database { // - innodb_file_format_max // - innodb_large_prefix // 1. MySQL: deprecated in 5.7.7 and removed 8.0.0+. - $ismysqlge8d0d0 = ($this->get_dbtype() == 'mysqli') && + $ismysqlge8d0d0 = ($this->get_dbtype() == 'mysqli' || $this->get_dbtype() == 'auroramysql') && version_compare($this->get_server_info()['version'], '8.0.0', '>='); // 2. MariaDB: deprecated in 10.2.0 and removed 10.3.1+. $ismariadbge10d3d1 = ($this->get_dbtype() == 'mariadb') &&