Bonnet R?my <[EMAIL PROTECTED]> wrote: > Hello, > > I have a database which is flushed every four hours, > and > I want to replicate it without replicating the delete > queries . Is this possible ? > (sorry for my awful english)
With mysqlbinlog utility or with SHOW BINLOG EVENTS statement find needed events (DELETE queries). >From version 4.1.1 SLAVE START command has UNTIL clause. If you use UNTIL clause when >SQL thread reaches given point, it stops. So, specify log file and position in the >UNTIL clause. When replication stops, use SET GLOBAL SQL_SLAVE_SKIP_COUNTER to skip >next event(s) from the master: http://www.mysql.com/doc/en/START_SLAVE.html http://www.mysql.com/doc/en/SET_GLOBAL_SQL_SLAVE_SKIP_COUNTER.html -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]