MySQL Error Message
Statement violates GTID consistency: CREATE TEMPORARY
TABLE and DROP TEMPORARY TABLE can only be executed outside
transactional context. These statements are also not allowed in a
function or trigger because functions and triggers are also
considered to be multi-statement transactions.
Reason for the Error
ER_RPL_GTID_UNSAFE_STMT_ON_TEMPORARY_TABLE
was added in 8.0.11, removed after 8.0.12.