Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

How to troubleshoot, find and fix query Percona 5.6 with error "SQLSTATE[HY000]: General error: 1785 When @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1"

$
0
0

i'm running Magento CMS, and underneath there are 2 physical servers both with Percona

Server version: 5.6.23-72.1-log Percona Server (GPL), Release 72.1, Revision 0503478

in Master/Slave with GTID config.

Here it is the config, specific for GTID (it's the same also on salve)

server-id =1
binlog_format =MIXED
log_bin =/var/log/mysql/mysql-bin.log
expire_logs_days =3
max_binlog_size =50M
log_slave_updates =1
gtid-mode =on
enforce_gtid_consistency master-info-repository =TABLE
relay-log-info-repository =TABLE sync-master-info =1
binlog-checksum =CRC32
master-verify-checksum =1
report-host =BCVMaster

My client randomly during the day, receives this error:

SQLSTATE[HY000]: General error: 1785 When @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1, updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables.

I'm willing to resolv this problem, me from a server stand point of view and i have 2 magento developers ready to help me, but i need help on how to trace, identify and visualize offending query so either me or developer can resolve the problem.

What i have done so far

1)converted as many possible tables from MyISAM to InnoDB

2)changed binlog format from row --> mixed

3)rebuild twice the slave with innobackupex

4) tried to read from binary logs: mysqlbinlog --base64-output=decode-rows -vv mysql-bin.000179 > /root/mysqlbin179.txt but seems i'm not looking in the right direction.

Can i please have some help on this?

thank you


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>