From what I learned, a MySQL MASTER server is one that can both read and write. Correct?
My question is: Suppose you have 2 MySQL master-write servers (and many slave-read servers).
How can you solve the problem of auto-increment? How do you sync it? Suppose you are writing to both the Master1 and Master2…how will you sync it so that the auto-increment is consistent?
Can someone please explain the solution to this in a simple sense.
You set server #1 to use odd numbered auto increment values and server number #2 to use even numbered.
There’s a linux how-to which outlines the process.
See also MySQL docs on this.