Import limits
phpMyAdmin has upload limits (usually 2-8MB). MySQL has max_allowed_packet limits. Large dumps with millions of rows need to be split to import without errors.
Always import part-01 first
Part 1 contains CREATE TABLE and other structure statements. Always import it first. Then import the remaining parts in numeric order.
For very large files
For files over 10MB use the command line: mysql -u user -p dbname < dump.sql bypasses all upload limits entirely. Or use mysqlimport for CSV data.
FOREIGN_KEY_CHECKS=0
Each chunk includes SET FOREIGN_KEY_CHECKS=0 so you can import parts out of order without foreign key constraint errors. Re-enable after all parts are imported.
Database migrations, PDO, query optimization, and backup strategies -- covered in our PHP developer ebooks and courses.