I'm writing a shell script for point in time recovery for MySQL database.For the below statement I need to specify the start position and end position of a log file.
mysqlbinlog --start-position=368315 --stop-position=368316 /usr/local/mysql/data/mysql-bin.123456
How can I retrieve the log position and log file.
Best Answer
There is a cleaner approach
This logs into mysql only once.