With MySQL replication, when using the UUID() function to insert or
update values in your database you need to be careful to assure
the UUIDs are replicated properly. This is primarily a problem in
statement-based replication.
Here's a simple example with row-based replication to illustrate
UUIDs replicating successfully:
Master
``` master > set binlog_format = 'ROW'; Query OK, 0 rows
affected (0.00 sec)
master > insert into uuid_test (binlog_format,uuid_string)
values(@@binlog_format,uuid()); Query OK, 1 row affected (0.00
sec)
master > select id,binlog_format,uuid_string,md5(uuid_string)
from uuid_test;
+----+---------------+--------------------------------------+----------------------------------+
| id | binlog_format | uuid_string | md5(uuid_string) | …
[Read more]