Skip to Main Content

MySQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Best way to get binary log file and position without backing up binary and relay logs

3578012Oct 18 2019 — edited Oct 21 2019

When we've needed to resync a slave we took a mysqlbackup from the master, applied the log and then the incrementals if needed, and then transferred the files to the slave and restored the database.  When we changed the master information for the binlog file and position, we used what was provided in the result of the apply-log or apply-incremental-backup command.  This has worked well for most instances, but we encountered an issue on an archive server that sees little change.  We needed to restore replication, but after restoring the database I used the binlog file and position and got the response that the slave couldn't find that binary log.  After doing some investigation, I discovered that the binary log it gave me was over two weeks old and we only keep a week's work of binary logs.  Is there a place in the mysql system database that holds the current binlog file and position that can be used for this?  We are using MySQL 5.6.40 and mysqlbackup 3.12.  We are planning on upgrading soon but it will take some time until we can upgrade everything.

Comments

Timo Hahn
This should be a normal operation as the sorting is done on the DB and not in memory (if you have not changed this).
If the sort is done on the db it execute the query again with a order by clause.

Timo
vikasadf
The table gets refresh automatically when you click on ascending or descending button.
If you need to refresh your table forcefully then use AdfFacesContext.getCurrentInstance().addPartialTarget(tableBinding);
you can write your code in short listener if you need to write your custom code.This code will be executed every time you click on ascending or descending button.

Edited by: 812903 on Mar 21, 2013 4:54 AM
1 - 2

Post Details

Added on Oct 18 2019
2 comments
586 views