Import SQL File into MYSQL Database Using Command Line April 20, 2016April 20, 2016 contrib SQL To import sql file into existing database use the code below mysql -u[username] -p[password] [database_name] < [file.sql]