Changing the Log-Bin Location
Modifying the binary log location by using the log-bin
variable in the MySQL configuration file might result in two different path entries inside the index file, which could result in errors. To avoid any potential errors, change the log-bin location by doing the following:
- Stop any new DML operations.
- Let the extract finish processing all of the existing binary logs. You can verify this by noting when the checkpoint position reaches the offset of the last log.
- After Extract finishes processing the data, stop the Extract group and, if necessary, back up the binary logs.
- Stop the MySQL database.
- Modify the
log-bin
path for the new location. - Start the MySQL database.
- To clean the old log name entries from index file, use
flush master
orreset master
(based on your MySQL version). - Start Extract.