Hi sakuraime,
For GLOBAL_TEMPORARY_TABLE_AUTO_DROP option, you can try to create a global temporary table and not use it. By default (GLOBAL_TEMPORARY_TABLE_AUTO_DROP is on), the global temporary table will be deleted automatically. If you create a global temporary table when GLOBAL_TEMPORARY_TABLE_AUTO_DROP is off, the global temporary table needs to be deleted using the DROP TABLE statement, or it will be deleted when the server is restarted.
Best Regards,
Amelia