krowinski / php-mysql-replication

Pure PHP Implementation of MySQL replication protocol. This allow you to receive event like insert, update, delete with their data and raw SQL queries.
MIT License
323 stars 98 forks source link

How to synchronize data using gtid? #114

Open yaqianghan opened 7 months ago

yaqianghan commented 7 months ago

Please provide the following details.

Steps required to reproduce the problem.

  1. How to synchronize data using gtid?

Expected Result.

source data: O:37:"MySQLReplication\BinLog\BinLogCurrent":4:{s:53:"MySQLReplication\BinLog\BinLogCurrentbinLogPosition";i:160437496;s:50:"MySQLReplication\BinLog\BinLogCurrentbinFileName";s:16:"mysql-bin.000089";s:43:"MySQLReplication\BinLog\BinLogCurrentgtid";s:45:"e2e75fef-cdac-11ec-b007-6c92bf48c1de:53417565";s:50:"MySQLReplication\BinLog\BinLogCurrentmariaDbGtid";N;}

Actual Result.

yaqianghan commented 7 months ago

@kobi97