Install the composer patch modules:
composer require cweagans/composer-patches
Copy the patch file content/name and add to your root magento in patchs/composer/mysql-temporary-tables-fix.patch
Add the following code to your composer.json file:
"extra": {
"magento-force": "override",
// Lines added here:
"composer-exit-on-patch-failure": true,
"patches": {
"magento/framework": {
"Mysql 8 Temporary table fix": "patches/composer/mysql-temporary-tables-fix.patch"
}
}
}
Run composer update --lock
to update your composer and install the patch.