import data mysql by cli code example Example: command line mysql import mysql -u username -p database_name < file.sql