import file sql command line code example Example: mysql load sql from file mysql> use db_name; mysql> source file_name.sql;