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)…

Open terminal (CTRL + ALT + T) and then depending on action use this following code. To import database from local *.sql file by using terminal:- OR if you have a database username(as admin) and password(as admin137). Use this following code:-