I have a system where I have binary-logging enabled and I perform a mysqldump (single-transaction, all InnoDB) nightly. If I wanted to perform a point-in-time recovery, how would I know at which point in the binary log to start rolling forward? For example.
bin-log.000001 contains all the change before, and after my dump.sql file. If I do:
mysql < dump.sql
To restore to the last full export and then roll forward to the latest point using:
mysqlbinlog bin-log.000001 | mysql
Will MySQL know the right place to start from?