Importing db

Problem

How to import database

Solution

To import database in terminal you can do the folloing:

# If you are already logged in to db
Use <database_name>;
\. <dbfile>.sql

# Another example
e.g. mysql -u scallaki -p phing_staging_bcc_drupal7 < /var/www/bcc-db-05-04-2016.sql