bitbucket安装连接数据库时提示没有创建临时表权限

在安装bitbucket 5时,可能会遇到这个问题,页面提示为Bitbucket does not have adequate permissions to create a temporary table in the target database when connected as the specified user. 但是赋予各种权限都没有用。真正原因是连接数据库时bitbucket在事务中创建了临时表,但是如果你mysql数据中开启了GTID,在事务中创建临时表就会报错。所以安装bitbucket必须关闭GTID,如下所示:

gtid_mode                          = off
enforce_gtid_consistency           = 0

猜你喜欢

转载自www.cnblogs.com/liu102401/p/9660250.html
今日推荐