python read mysql dump code example Example: import mysql dump tar -xzOf your_db_dump.sql.tar.gz | mysql -u USERNAME -pPASSWORD your_database