简体   繁体   中英

Error on GTID Replication

During the replication usind GTID, happened this error in the slave server:

Error 'Cannot execute statements with implicit commit inside a transaction when @@SESSION.GTID_NEXT.= AUTOMATIC or @@SESSION.GTID_NEXT_LIST.= NULL:' on query. Default database: ''. Query: 'flush privileges'

Somebody can help me?

Thanks for all! (sorry for my bad english)

您必须检查GTID_NEXT变量。应通过AUTOMATIC进行检查。如果未将其设置为AUTOMATIC。则基于GTID的复制中的隐式提交命令不会出现问题。

I fixed running with change master to (Relay_Master_Log_File & Exec_Master_Log_Pos from show slave status). There some blockers are exisits using gtid. Error 1178 is one of it

You can reset slave from same position:

stop slave;
reset slave;

change master to
 MASTER_HOST='192.168XX',
 MASTER_USER='XX',
 MASTER_PASSWORD='XX',
 MASTER_PORT=3306,
 MASTER_LOG_FILE='mysql-bin.XX',
 MASTER_LOG_POS=XX;

show slave status ;
start slave ;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM