How can I import a database with mysql from terminal?
I cannot find the exact syntax.
Explanation:
First create a database or use an existing database. In my case, I am using an existing database
Load the database by giving
in my case and using the operator <
give the path to the database = sakila-data.sql
By running show tables, I get the list of tables as you can see.
Note : In my case I got an error 1062, because I am trying to load the same thing again.