To Create database from local file by using terminal:- At first open terminal (CTRL + ALT + T) and then type this following code:- Example:- Here:- Username = admin Password = admin37 New database = new_db Database want to import = demo_db.sql as this format:- mysql -u user_name(username of database) -ppassword(Database password)