How to import MySQL .sql file in command line

By | July 25, 2020

Once you have logged in, the command is quite simple.

 mysql> use db_name;
 mysql> source file_name.sql;

Leave a Reply

Your email address will not be published. Required fields are marked *