how to import data using a query mysql code example Example: mysql import sql file mysql -u username -p database_name < file.sql