MySQL Forums
Forum List  »  Replication

Re: Replication problem
Posted by: ahmad younes
Date: January 13, 2010 07:21AM

the first multi master replication we did is stopping with us not knowing what exactly going wrong
sometimes error is .. duplicate primary key , sometimes impossible to read log position

and then we have to delete all relay files and index and redo the replication again for it to work

any idea what might be wrong ?! am not very sure abt my.ini configuration
please tell me if something is wrong with it


[mysqld]
# IP of 2nd Server
report-host=192.168.10.252
report-user=repadmin
report-password=repadmin
# IP of 1st Server
master-host=192.168.10.206
master-user=<repadmin>
master-password=<repadmin>
log-bin=C:/Program Files/MySQL/MySQL Server 5.1/bin/mysql-bin.log
server-id=1
auto_increment_increment=10
auto_increment_offset=1
relay-log-index=callcenter2-relay-bin.index

and to the 2nd


[mysqld]
# IP of 2nd Server
report-host=192.168.10.206
report-user=repadmin
report-password=repadmin
# IP of 1st Server
master-host=192.168.10.252
master-user=<repadmin>
master-password=<repadmin>
log-bin=C:/Program Files/MySQL/MySQL Server 5.1/bin/mysql-bin.log
server-id=2
auto_increment_increment=10
auto_increment_offset=2
relay-log-index=callcenter2-relay-bin.index




the one am note sure about is the relay-log-index=callcenter2-relay-bin.index i use the same file on both servers ... which is the one with the ip 252
is that right ? or should i use deffernet relay index in each my.ini ?

Options: ReplyQuote


Subject
Views
Written By
Posted
4636
December 16, 2009 01:23AM
2444
December 19, 2009 06:31PM
2546
December 21, 2009 02:46AM
8551
December 21, 2009 02:49AM
4120
December 21, 2009 08:04PM
4035
December 22, 2009 05:08AM
3776
December 22, 2009 08:35PM
3307
December 23, 2009 06:16AM
3027
December 23, 2009 09:52PM
2885
December 29, 2009 04:49AM
2500
December 30, 2009 12:08AM
Re: Replication problem
2620
January 13, 2010 07:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.