后端节点Mysql8.0 时,dble启动出现 'xa recover' 报错 #3290
Answered
by
wenyh1
Dinosauria
asked this question in
Q&A
-
观察dble日志,找到Mysql端响应
为什么报错?怎么解决? |
Beta Was this translation helpful? Give feedback.
Answered by
wenyh1
Aug 15, 2022
Replies: 2 comments
-
根据上面的日志看,dble下发语句 报错原因: 解决方案:
重启dble 或者 刷新连接池生效。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wenyh1
-
此功能暂无法关闭。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
根据上面的日志看,dble下发语句
xa recover
至MySQL ,MySQL响应报错:1401, XAER_RMERR: Fatal error occurred in the transaction branch - check your data for consistency
报错原因:
后端节点Mysql版为8.0;在Mysql8.0中,执行
XA RECOVER
的用户需要拥有 XA _ RECOVER _ ADMIN 特权;否则报错 1401 ...具体见:XA_RECOVER_ADMIN
解决方案:
db.xml中配置的后端MySQL用户 需要赋予 XA_RECOVER_ADMIN 权限,比如:
重启dble 或者 刷新连接池生效。