mysql事物的状态_详解MySQL参数session_track_transaction_info-跟踪事务的状态-建站-站长头条...

概述

在数据库中间件读写分离应用场景中,如何保证底层数据库出现故障节点的时,中间件可以快速断开或迁移数据库连接,让用户没有感觉呢?在MySQL数据库中,提供了一个session_track_transaction_info参数来提供解决方案。

A system and method for linking data objects and physical objects of various kinds to an identified user is described. The system provides to the identified user information relating to the delivery status of mail pieces directed to or sent by the user, and the user then tracks and traces the mail pieces.

2、session_track_transaction_info参数

2.1 参数介绍

MySQL5.7中,可以通过设置session_track_transaction_info变量来跟踪事务的状态。

05a6a5ce8ede7058f8f7827eba5e4146.png该参数存在global以及session两个级别,可以动态修改。

该参数可以设置的值为0(默认OFF),1,2

/**

Transaction tracking level

*/

enum enum_session_track_transaction_info

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值