Re: Mysql binlog: help needed
Posted by: Gautam Prashant
Date: January 12, 2012 12:20AM

Hi,

I found the cause. I was using the incorrect binary log. Below are the correct steps:

(1) create a db
(2) create table; insert records
(3) mysqldump -u root -p --single-transaction --master-data=2 --flush-logs gp1 > gp1.sql
(4) insert one more record. then drop table
(5) select now();
(6) restore last dump.
(7) mysqlbinlog --stop-datetime="2012-01-11 10:18:20" mysql-bin.000015 | mysql -u root -p

Note: the time given should be previous time before drop is fired. Also, the binary log should be the latest one.

Options: ReplyQuote


Subject
Written By
Posted
January 10, 2012 11:15PM
Re: Mysql binlog: help needed
January 12, 2012 12:20AM


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.