0

已经创建了一个 mysql 服务器,它以某种方式log_bin设置为ON并且enforce_gtid_consistency也设置为ON. 现在这在我的情况下引起了一些问题,我想改变OFF这些变量。我尝试过的过程

1. Create a .my.cnf file in user root (~/.my.cnf) and added
[mysqld]
enforce_gtid_consistency=OFF

结果:没有变化。它没有生效。

2. In azure portal in init_connect variable i have set "SET enforce_gtid_consistency=OFF;" (because there is no mention of this variable in server parameters).

结果:在此参数中设置值后无法连接到 mysql。

我们有什么办法可以解决这个问题吗?

4

1 回答 1

0

可能是以下文档有帮助:

https://docs.microsoft.com/en-us/azure/mysql/concepts-read-replicas#global-transaction-identifier-gtid

启用 GTID 后,您将无法将其关闭。如果您需要关闭 GTID,请联系支持人员。

于 2020-10-28T07:15:31.507 回答