[FATAL_ERROR] Uncaught PDOException: There is already an active transaction

[FATAL_ERROR] Uncaught PDOException: There is already an active transaction 。。。

$mysql->beginTransaction();

出现这个错误就是事务嵌套了。意思就是本来一段代码中已经开启了事务处理, 然后在这段代码中又写多了一个事务,同时开启了两个事务处理就会冲突。

原文地址:https://www.cnblogs.com/pyspang/p/10983496.html