Ad

binlog2sql: Convert MySQL binlog to SQL

binlog2sql parses MySQL binlog and outputs SQL statements. It supports various options like flashback and filtering, simplifying data recovery and analysis.
Screenshot of danfengcao/binlog2sql homepage

binlog2sql parses MySQL binary logs (binlogs) to generate standard SQL statements. It addresses the need for easy recovery from data loss, especially after accidental deletions or corruption. The project provides a Python-based solution, offering flexibility and ease of use. A key use case is data rollback, enabling users to revert data changes based on binlog records.

binlog2sql distinguishes itself through its straightforward Python implementation, making installation and usage simple. It offers a flexible approach to generating SQL, including flashback mode for handling data recovery scenarios without memory limitations. The project's modular design facilitates customization and extension to accommodate specific needs.

  • Standard SQL Output: Generates standard SQL statements for easy understanding and manipulation.
  • Flashback Mode: Enables rollback operations by generating SQL for a specific time range.
  • Filtering Options: Supports filtering by database, table, and SQL type (INSERT, UPDATE, DELETE).
  • Flexible Time Range: Allows specifying a start and end time for parsing binlog records.
  • Extensibility: Easy to modify and extend to support additional features and use cases.
  • Cross-Platform: Compatible with various operating systems where Python is available.
  • Simple Configuration: Uses command-line arguments for easy configuration.

binlog2sql is actively maintained and has a history of contributions. Recent commits indicate ongoing development and bug fixes. The project has a community of users and contributors providing support and feedback. The documentation is reasonably complete, providing usage examples and explanations.

binlog2sql benefits developers and DBAs by simplifying data recovery and analysis. It is ideal for scenarios such as accidental data deletion, principal/master-slave replication issues, and general data restoration. It offers a straightforward alternative to manual binlog parsing and provides a flexible tool for MySQL data management.

Languages:
Summarize:
Share:
Stars
3,542
Forks
1,061
Issues
84
Created
9 years ago
Commit
4 years ago
License
GPL-3.0
Archived
No
Updated 13 days ago

Similar Repositories