https://www.cnblogs.com/isuben/p/7908468.html

1、首先要确保mysql开启XA事务支持
SHOW VARIABLES LIKE '%XA%'

MySQL支持的跨库事务

 如果innodb_support_xa的值是ON就说明mysql已经开启对XA事务的支持了。 如果不是就执行:

SET innodb_support_xa = ON
start transaction;
insert into yejr.a values (1);
insert into test.b values (2);
commit;

 



相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-12-06
  • 2022-03-07
  • 2021-04-21
  • 2021-08-16
猜你喜欢
  • 2021-05-26
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案