【发布时间】:2011-08-28 14:47:17
【问题描述】:
我正在使用事务范围。在该事务范围内,我有一个 mysql 数据库连接。但是,我需要在之前的事务范围内打开一个新的 [又一个] MySQL 连接。
当我这样做时,我收到以下错误Multiple simultaneous connections or connections with different connection strings inside the same transaction are not currently supported.。
这是因为 MySQL 服务器不支持多个分布式事务,我应该在代码中更改什么或在服务器中更改什么吗?。
如果我使用上述方案,同时连接到 SQL Server 而不是 mysql 服务器,是否会有支持
【问题讨论】:
标签: mysql distributed-transactions