1

Complete beginner on MySQL, have tried to find the solution by googling but got into deep rabbitholes that didn't help, like trying to read binlogs from terminal. The MySQL Manual was not accessible enough for my limited experience and knowledge. Btw the db is only running locally.

1 Answer 1

1

You can use mysql-connector-python, and execute the following queries:

SHOW BINARY LOGS;

This will show all your binary logs. They are time-ordered so the biggest integer in the log name will mean the latest log.

SHOW BINLOG EVENTS IN "binlog.000420";

This will show events on your binlog. Pos column means Position, and will also be time-ordered so the biggest Pos means the latest event. Event_type and Info will provide valuable information for the logged events.

You can check the latest binlog and Pos by querying:

SHOW MASTER STATUS;

PS: I'm a beginner, and spent 10 hours of research before learning this stuff. So perhaps this SO question/answer might help others.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.