GTID的限制(不支持的MySQL特性):
1、事務(wù)中混合多個存儲引擎,會產(chǎn)生多個GTID。
2、主從庫的表存儲引擎不一致,會導(dǎo)致數(shù)據(jù)不一致。
3、基于GTID模式復(fù)制,不支持CREATE TABLE...SELECT語句。
4、不支持CREATE_TEMPORARY TABLE和DROP TEMPORARY TABLE。
5、不推薦在TID模式的實(shí)例上進(jìn)行mysql_ugrade
1、事務(wù)中混合多個存儲引擎,會產(chǎn)生多個GTID。
2、主從庫的表存儲引擎不一致,會導(dǎo)致數(shù)據(jù)不一致。
3、基于GTID模式復(fù)制,不支持CREATE TABLE...SELECT語句。
4、不支持CREATE_TEMPORARY TABLE和DROP TEMPORARY TABLE。
5、不推薦在TID模式的實(shí)例上進(jìn)行mysql_ugrade
2017-10-25
在master上設(shè)置復(fù)制。一個小例子:用mysql -e這樣的方式就會產(chǎn)生問題,一些改變不會寫入到binlog日志中,最后導(dǎo)致主從不一致。
grant replication slave on test.* to 'datou'@'192.168.16.%' indentified by '123456';
出錯::
ou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'indentified by '123456'' at line 1
出錯::
ou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'indentified by '123456'' at line 1