## End of Exercises

In this lab, you learned how to use the `sync-diff-inspector` tool to compare and verify data consistency between MySQL and TiDB databases. The main steps included:

- **Deploying sync-diff-inspector**: You extracted the tool from the TiDB Toolkit and confirmed its installation.
- **Preparing the environment**: You connected to the appropriate nodes and set up the required databases and tables in both MySQL and TiDB.
- **Configuring sync-diff-inspector**: You reviewed and understood the configuration file (`solution-sync-diff-config.toml`), which specifies source and target databases, tables to compare, and other options.
- **Running data comparison**: You executed the tool to compare table structures and data, and reviewed the output logs and summary files.
- **Interpreting results**: You analyzed the summary report to identify tables with data inconsistencies and learned how to locate generated SQL patch files for fixing discrepancies.

By completing this lab, you gained hands-on experience in:

- Setting up and using `sync-diff-inspector` for cross-database data validation.
- Understanding the output and logs produced by the tool.
- Identifying and addressing data inconsistencies between MySQL and TiDB.

This process is essential for ensuring data integrity during database migration or synchronization tasks.
