我的编程空间,编程开发者的网络收藏夹
学习永远不晚

MySQL Error number: 3748; Symbol: ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR; SQLSTA

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

MySQL Error number: 3748; Symbol: ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR; SQLSTA

文档解释

Error number: 3748; Symbol: ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR; SQLSTATE: HY000

Message: Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE are not allowed inside a transaction or inside a procedure in a transactional context when @@session.binlog_format=STATEMENT.

Error 3748:ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR

错误说明

Error 3748表示用户在Sysbemaster Read-only事件当中, 是不允许创建或者删除临时表的。这个错误是针对于Global Transaction Identifier(GTID)增强特性,并且在MySQL早版本中是不存在的。

常见案例

典型情况下,MySQL服务器会试图通过调用记录在user_var_entry中的变量来创建或者删除一个临时表:

SET @mytemp_table = ‘mytemp_table’; CREATE TEMPORARY TABLE IF NOT EXISTS @mytemp_table; DROP TEMPORARY TABLE IF EXISTS @mytemp_table;

解决方法

1) 如果涉及到多个sessions,并且有Global Transaction Identifier (GTID)的情况下,可以在执行数据库查询之前,先在事务内将相关表创建出来,最后再将相应的表清理掉;

2)能在服务器上安装表,可以使用PERSISTENT option来创建这个表。

3)MySQL 8.0.3及更新的版本支持WRITE_SET_SESSION_VARIABLES保护,如果使用此保护,在此类操作时,不会报此类错误。

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

MySQL Error number: 3748; Symbol: ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR; SQLSTA

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

MySQL Error number: 3748; Symbol: ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR; SQLSTA

文档解释Error number: 3748; Symbol: ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR; SQLSTATE: HY000Message:
MySQL Error number: 3748; Symbol: ER_CLIENT_GTID_UNSAFE_CREATE_DROP_TEMP_TABLE_IN_TRX_IN_SBR; SQLSTA
2023-11-05

MySQL Error number: 4101; Symbol: ER_IF_NOT_EXISTS_UNSUPPORTED_UDF_NATIVE_FCT_NAME_COLLISION; SQLSTA

文档解释Error number: 4101; Symbol: ER_IF_NOT_EXISTS_UNSUPPORTED_UDF_NATIVE_FCT_NAME_COLLISION; SQLSTATE: HY000Message:
MySQL Error number: 4101; Symbol: ER_IF_NOT_EXISTS_UNSUPPORTED_UDF_NATIVE_FCT_NAME_COLLISION; SQLSTA
2023-11-04

MySQL Error number: 4100; Symbol: ER_IF_NOT_EXISTS_UNSUPPORTED_TRG_EXISTS_ON_DIFFERENT_TABLE; SQLSTA

文档解释Error number: 4100; Symbol: ER_IF_NOT_EXISTS_UNSUPPORTED_TRG_EXISTS_ON_DIFFERENT_TABLE; SQLSTATE: HY000Message:
MySQL Error number: 4100; Symbol: ER_IF_NOT_EXISTS_UNSUPPORTED_TRG_EXISTS_ON_DIFFERENT_TABLE; SQLSTA
2023-11-05

MySQL Error number: 4142; Symbol: ER_BULK_LOADER_FILE_CONTAINS_LESS_LINES_THAN_IGNORE_CLAUSE; SQLSTA

文档解释Error number: 4142; Symbol: ER_BULK_LOADER_FILE_CONTAINS_LESS_LINES_THAN_IGNORE_CLAUSE; SQLSTATE: HY000Message: The
MySQL Error number: 4142; Symbol: ER_BULK_LOADER_FILE_CONTAINS_LESS_LINES_THAN_IGNORE_CLAUSE; SQLSTA
2023-11-05

MySQL Error number: MY-010331; Symbol: ER_USER_NOT_IN_EXTRA_USERS_BINLOG_POSSIBLY_INCOMPLETE; SQLSTA

文档解释Error number: MY-010331; Symbol: ER_USER_NOT_IN_EXTRA_USERS_BINLOG_POSSIBLY_INCOMPLETE; SQLSTATE: HY000Message:
MySQL Error number: MY-010331; Symbol: ER_USER_NOT_IN_EXTRA_USERS_BINLOG_POSSIBLY_INCOMPLETE; SQLSTA
2023-11-05

MySQL Error number: MY-013974; Symbol: ER_BULK_PARSER_ROW_BUFFER_MAX_TOTAL_COLS_EXCEEDED_LOG; SQLSTA

文档解释Error number: MY-013974; Symbol: ER_BULK_PARSER_ROW_BUFFER_MAX_TOTAL_COLS_EXCEEDED_LOG; SQLSTATE: HY000Message: The
MySQL Error number: MY-013974; Symbol: ER_BULK_PARSER_ROW_BUFFER_MAX_TOTAL_COLS_EXCEEDED_LOG; SQLSTA
2023-11-05

MySQL Error number: MY-011662; Symbol: ER_GRP_RPL_FAILED_TO_UNREGISTER_SERVER_STATE_OBSERVER; SQLSTA

文档解释Error number: MY-011662; Symbol: ER_GRP_RPL_FAILED_TO_UNREGISTER_SERVER_STATE_OBSERVER; SQLSTATE: HY000Message:
MySQL Error number: MY-011662; Symbol: ER_GRP_RPL_FAILED_TO_UNREGISTER_SERVER_STATE_OBSERVER; SQLSTA
2023-11-05

MySQL Error number: MY-010503; Symbol: ER_NDB_TRAILING_SHARE_RELEASED_BY_CLOSE_CACHED_TABLES; SQLSTA

文档解释Error number: MY-010503; Symbol: ER_NDB_TRAILING_SHARE_RELEASED_BY_CLOSE_CACHED_TABLES; SQLSTATE: HY000Message:
MySQL Error number: MY-010503; Symbol: ER_NDB_TRAILING_SHARE_RELEASED_BY_CLOSE_CACHED_TABLES; SQLSTA
2023-11-05

MySQL Error number: MY-010421; Symbol: ER_RPL_FAILED_TO_RESET_STATE_IN_SLAVE_INFO_REPOSITORY; SQLSTA

文档解释Error number: MY-010421; Symbol: ER_RPL_FAILED_TO_RESET_STATE_IN_SLAVE_INFO_REPOSITORY; SQLSTATE: HY000Message:
MySQL Error number: MY-010421; Symbol: ER_RPL_FAILED_TO_RESET_STATE_IN_SLAVE_INFO_REPOSITORY; SQLSTA
2023-11-05

MySQL Error number: MY-011664; Symbol: ER_GRP_RPL_FAILED_TO_UNREGISTER_BINLOG_STATE_OBSERVER; SQLSTA

文档解释Error number: MY-011664; Symbol: ER_GRP_RPL_FAILED_TO_UNREGISTER_BINLOG_STATE_OBSERVER; SQLSTATE: HY000Message:
MySQL Error number: MY-011664; Symbol: ER_GRP_RPL_FAILED_TO_UNREGISTER_BINLOG_STATE_OBSERVER; SQLSTA
2023-11-04

MySQL Error number: MY-011422; Symbol: ER_KEYRING_AWS_FAILED_TO_ACCESS_OR_CREATE_KEYRING_DIR; SQLSTA

文档解释Error number: MY-011422; Symbol: ER_KEYRING_AWS_FAILED_TO_ACCESS_OR_CREATE_KEYRING_DIR; SQLSTATE: HY000Message:
MySQL Error number: MY-011422; Symbol: ER_KEYRING_AWS_FAILED_TO_ACCESS_OR_CREATE_KEYRING_DIR; SQLSTA
2023-11-05

MySQL Error number: MY-011615; Symbol: ER_GRP_RPL_ERROR_WHILE_WAITING_FOR_CONFLICT_DETECTION; SQLSTA

文档解释Error number: MY-011615; Symbol: ER_GRP_RPL_ERROR_WHILE_WAITING_FOR_CONFLICT_DETECTION; SQLSTATE: HY000Message:
MySQL Error number: MY-011615; Symbol: ER_GRP_RPL_ERROR_WHILE_WAITING_FOR_CONFLICT_DETECTION; SQLSTA
2023-11-05

MySQL Error number: MY-010724; Symbol: ER_BINLOG_OOM_WRITING_DELETE_WHILE_OPENING_HEAP_TABLE; SQLSTA

文档解释Error number: MY-010724; Symbol: ER_BINLOG_OOM_WRITING_DELETE_WHILE_OPENING_HEAP_TABLE; SQLSTATE: HY000Message:
MySQL Error number: MY-010724; Symbol: ER_BINLOG_OOM_WRITING_DELETE_WHILE_OPENING_HEAP_TABLE; SQLSTA
2023-11-05

MySQL Error number: MY-011418; Symbol: ER_KEYRING_AWS_FAILED_TO_ACCESS_KEY_ID_FROM_CONF_FILE; SQLSTA

文档解释Error number: MY-011418; Symbol: ER_KEYRING_AWS_FAILED_TO_ACCESS_KEY_ID_FROM_CONF_FILE; SQLSTATE: HY000Message:
MySQL Error number: MY-011418; Symbol: ER_KEYRING_AWS_FAILED_TO_ACCESS_KEY_ID_FROM_CONF_FILE; SQLSTA
2023-11-05

MySQL Error number: MY-011404; Symbol: ER_KEYRING_ENCRYPTED_FILE_FOUND_MALFORMED_BACKUP_FILE; SQLSTA

文档解释Error number: MY-011404; Symbol: ER_KEYRING_ENCRYPTED_FILE_FOUND_MALFORMED_BACKUP_FILE; SQLSTATE: HY000Message:
MySQL Error number: MY-011404; Symbol: ER_KEYRING_ENCRYPTED_FILE_FOUND_MALFORMED_BACKUP_FILE; SQLSTA
2023-11-05

MySQL Error number: MY-011695; Symbol: ER_GRP_RPL_UNKNOWN_GRP_RPL_APPLIER_PIPELINE_REQUESTED; SQLSTA

文档解释Error number: MY-011695; Symbol: ER_GRP_RPL_UNKNOWN_GRP_RPL_APPLIER_PIPELINE_REQUESTED; SQLSTATE: HY000Message:
MySQL Error number: MY-011695; Symbol: ER_GRP_RPL_UNKNOWN_GRP_RPL_APPLIER_PIPELINE_REQUESTED; SQLSTA
2023-11-04

MySQL Error number: MY-011259; Symbol: ER_SYS_VAR_COMPONENT_FAILED_TO_PARSE_VARIABLE_OPTIONS; SQLSTA

文档解释Error number: MY-011259; Symbol: ER_SYS_VAR_COMPONENT_FAILED_TO_PARSE_VARIABLE_OPTIONS; SQLSTATE: HY000Message:
MySQL Error number: MY-011259; Symbol: ER_SYS_VAR_COMPONENT_FAILED_TO_PARSE_VARIABLE_OPTIONS; SQLSTA
2023-11-05

MySQL Error number: MY-013843; Symbol: ER_PERSISTED_VARIABLES_MASTER_KEY_CANNOT_BE_GENERATED; SQLSTA

文档解释Error number: MY-013843; Symbol: ER_PERSISTED_VARIABLES_MASTER_KEY_CANNOT_BE_GENERATED; SQLSTATE: HY000Message: A
MySQL Error number: MY-013843; Symbol: ER_PERSISTED_VARIABLES_MASTER_KEY_CANNOT_BE_GENERATED; SQLSTA
2023-11-05

MySQL Error number: MY-013787; Symbol: ER_GRP_RPL_FAILOVER_REGISTER_MESSAGE_LISTENER_SERVICE; SQLSTA

文档解释Error number: MY-013787; Symbol: ER_GRP_RPL_FAILOVER_REGISTER_MESSAGE_LISTENER_SERVICE; SQLSTATE: HY000Message:
MySQL Error number: MY-013787; Symbol: ER_GRP_RPL_FAILOVER_REGISTER_MESSAGE_LISTENER_SERVICE; SQLSTA
2023-11-05

MySQL Error number: MY-013692; Symbol: ER_GRP_RPL_GRP_NAME_IS_SAME_AS_ANONYMOUS_TO_GTID_UUID; SQLSTA

文档解释Error number: MY-013692; Symbol: ER_GRP_RPL_GRP_NAME_IS_SAME_AS_ANONYMOUS_TO_GTID_UUID; SQLSTATE: HY000Message: The
MySQL Error number: MY-013692; Symbol: ER_GRP_RPL_GRP_NAME_IS_SAME_AS_ANONYMOUS_TO_GTID_UUID; SQLSTA
2023-11-05

编程热搜

目录