<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>
中國站
幫助中心 > 數據庫 > 云數據庫MySQL > 常見(jiàn)問(wèn)題 > MySQL 5.6版本GTID特性對臨時(shí)表限制的處理方法

MySQL 5.6版本GTID特性對臨時(shí)表限制的處理方法

問(wèn)題描述

RDS for MySQL 5.6版本中,GTID特性對臨時(shí)表進(jìn)行了限制,導致報錯內容如下。

  1. When @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1, the statements CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can be executed in a non-transactional context only, and require that AUTOCOMMIT = 1.

說(shuō)明:
開(kāi)啟GTID后,5.7版本支持事務(wù)中使用臨時(shí)表,且binlog_format必須設置為ROW根式(RDS默認ROW格式)。

解決方法

您可以根據實(shí)際情況,選擇如下的解決方法。

  • create temporary table語(yǔ)句更改為create table,使用普通表替代臨時(shí)表。
  • 修改代碼,將臨時(shí)表的創(chuàng )建和刪除操作放在事務(wù)外,并且保證會(huì )話(huà)的參數為autocommit=1。
国产精品香港三级|日韩精品无码免费专区网站|熟女一区二区三区|一本伊大人香蕉久久网|jzzijzzij亚洲乱熟无码
<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>