python create mysql dump code example
Example 1: dump mysql
mysqldump -u username -p database_name > data-dump.sql
Example 2: import mysql dump
tar -xzOf your_db_dump.sql.tar.gz | mysql -u USERNAME -pPASSWORD your_database
mysqldump -u username -p database_name > data-dump.sql
tar -xzOf your_db_dump.sql.tar.gz | mysql -u USERNAME -pPASSWORD your_database