apply mysql dump code example
Example 1: dump mysql
mysqldump -u username -p database_name > data-dump.sql
Example 2: mysql dump restore
mysql -u [user] -p [database_name] < [filename].sql
Example 3: import mysql dump
tar -xzOf your_db_dump.sql.tar.gz | mysql -u USERNAME -pPASSWORD your_database