Import MySQL from Command Line Code Snippets, Linux, MySQL Here is the code to run a sql file within a specified database. mysql -u DB_User -p DB_Name < sql_file.sql Skills Posted on December 29, 2015 ← Improve Bounce Rate Image Gallery from a Directory of Images →