load mysql dump code example
Example 1: dump mysql
mysqldump -u username -p database_name > data-dump.sql
Example 2: mysql import sql file
mysql -u username -p database_name < file.sql
Example 3: mysql load sql from file
mysql> use db_name;
mysql> source file_name.sql;
Example 4: how to import mysql database command line
mysql>create database yourDatabaseName;
mysql>use yourDatabaseName;
Example 5: import mysql dump
tar -xzOf your_db_dump.sql.tar.gz | mysql -u USERNAME -pPASSWORD your_database