Hi,
I have a master/slave replication set up. It works fine when inserting/updating/deleting on the master directly via mysql statements, i.e. it replicates the insert/update/delete on the slave with no problem.
My problem is when my application changes the master database, the slave gives me the error:
[ERROR] Error in Log_event::read_log_event(): 'Found invalid event in binary log'
The corresponding statement in the master bin log is
BINLOG '
oOdSThMBAAAAQwAAANUBAAAAAJ4FAAAAAAEADG5ha2VkYm9va2luZwAJcmV0X3RhYmxlAAkDCvYM
AwMDAwMCBAD+AQ==
oOdSThcBAAAAMgAAAAcCAAAAAJ4FAAAAAAEACf//cv9i4xYAgAHkxHdqShIAADcsAAA=
'/*!*/;
My master my.cnf replication part:
server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
binlog_do_db = nakedbooking
innodb_flush_log_at_trx_commit=1
sync_binlog=1
binlog_format=mixed
My slave my.cnf replication part:
server-id=2
master-host=112.109.66.53
master-user=root
master-password=naked1234
master-connect-retry=60
replicate-do-db=nakedbooking
replicate-ignore-table=nakedbooking.ret_table
I have no idea what this problem is. Has anyone come across this problem or can help?
Thanks,
Jay
I have a master/slave replication set up. It works fine when inserting/updating/deleting on the master directly via mysql statements, i.e. it replicates the insert/update/delete on the slave with no problem.
My problem is when my application changes the master database, the slave gives me the error:
[ERROR] Error in Log_event::read_log_event(): 'Found invalid event in binary log'
The corresponding statement in the master bin log is
BINLOG '
oOdSThMBAAAAQwAAANUBAAAAAJ4FAAAAAAEADG5ha2VkYm9va2luZwAJcmV0X3RhYmxlAAkDCvYM
AwMDAwMCBAD+AQ==
oOdSThcBAAAAMgAAAAcCAAAAAJ4FAAAAAAEACf//cv9i4xYAgAHkxHdqShIAADcsAAA=
'/*!*/;
My master my.cnf replication part:
server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
binlog_do_db = nakedbooking
innodb_flush_log_at_trx_commit=1
sync_binlog=1
binlog_format=mixed
My slave my.cnf replication part:
server-id=2
master-host=112.109.66.53
master-user=root
master-password=naked1234
master-connect-retry=60
replicate-do-db=nakedbooking
replicate-ignore-table=nakedbooking.ret_table
I have no idea what this problem is. Has anyone come across this problem or can help?
Thanks,
Jay