mysql dump database import code example
Example 1: dump mysql
mysqldump -u username -p database_name > data-dump.sql
Example 2: import dump mysql
mysql -u username -p database_name < file.sql
mysqldump -u username -p database_name > data-dump.sql
mysql -u username -p database_name < file.sql