JtaAtomikos的XAER_RMERR: Fatal error occurred in the transaction branch异常处理

当前访问mysql的账号缺少系统权限,userxxxxxxxx账户缺少 “允许执行 XA RECOVER语句”的权限:XA_RECOVER_ADMIN,以root最高权限账号访问mysql,执行“

GRANT XA_RECOVER_ADMIN ON *.* TO userxxxxxxxx@'%'

语句,当然账号和IP需要根据自己的来改,此处为了节省时间直接改为*.*。

现在我的root(即admin)账户权限------>
mysql>

SHOW GRANTS FOR userxxxxxxxx@'%';

±---------------------------------------------------------------+
| Grants for userxxxxxxxx@% |
±---------------------------------------------------------------+
| GRANT USAGE ON . TO userxxxxxxxx@% |
| GRANT XA_RECOVER_ADMIN ON . TO userxxxxxxxx@% |
| GRANT ALL PRIVILEGES ON snail_slow_delivery.* TO userxxxxxxxx@% |
±---------------------------------------------------------------+

归根到底就是MYSQL设置权限的问题。

你可能感兴趣的:(mysql)