clarissa1996
Technical User
Hi all
I have configured a "dual master replication" with 2 host.
I have read the book "High Performance MySQL" Chapter 7.
It is me clear (I hope) the problem with the AUTO_INCREMENT.
I have understand (I hope) the possible (two) solutions to this problem.
I want to implement the following (third) solution:
on the master I use only odd values, and on the slave I use only even values for the AUTO_INCREMENT column.
Here my two questions:
1) Is this solution correct (is a good solution) ?
2) How can I *easily* change the following code (to implement my solution) ?
INSERT INTO Reservations VALUES(NULL, "blabla");
Thanks al lot for any help. Michelangelo
I have configured a "dual master replication" with 2 host.
I have read the book "High Performance MySQL" Chapter 7.
It is me clear (I hope) the problem with the AUTO_INCREMENT.
I have understand (I hope) the possible (two) solutions to this problem.
I want to implement the following (third) solution:
on the master I use only odd values, and on the slave I use only even values for the AUTO_INCREMENT column.
Here my two questions:
1) Is this solution correct (is a good solution) ?
2) How can I *easily* change the following code (to implement my solution) ?
INSERT INTO Reservations VALUES(NULL, "blabla");
Thanks al lot for any help. Michelangelo