This tutorial explains how to efficiently export selected large tables from a production Percona MySQL 8 database to a local development environment. This approach avoids the significant performance penalty associated with logical backups (mysqldump
) when working with large tables (multiple GBs each).
Prerequisites:
-
Your MySQL (Percona MySQL 8 recommended) server must have the
innodb_file_per_table
setting enabled. This setting is enabled by default in recent installations. -
Install Percona XtraBackup both on your server and local machine. Instructions: Percona XtraBackup Installation