关于使用MySQL4.0 Master/Slave实现双向备份的BUG

使用MySQL4.0作两台服务器的Master/Slave热备,无论作单向还是双象,都会出现一个问题,如果在Ma

ster上插入一条Slave中已存主键重复的记录,而Slave的作replicate操作的线程将中止,在Slave的My

SQL错误日志中出以下类似的提示:

0
60206 11:49:08  Slave: Error 'Duplicate entry '12345678' for key 1' on query 'INSERT INTO

`k12_session` (`sess_id`, `user_id`, `expiry`) VALUES ('12345678', 'aaa', '12345678')'.

Default database: 'k12platform', Error_code: 1062

060206 11:49:08  Error running query, slave SQL thread aborted. Fix the problem, and

restart the slave SQL thread with "SLAVE START". We stopped at log 'nbs2000-bin.001'

position 353

有什么方法解决这种问题,有相关的选项开关吗(忽略这种错误)?