Ubuntu nginx error log file location — June 16, 2017
Ubuntu nginx restart —
Install ubuntu 14.01 package from .deb file —
Ubuntu change timezone terminal — June 1, 2017
Ubuntu useful Commands — May 8, 2017
Ubuntu unrar a file — March 10, 2017
Import db from ubuntu terminal — August 16, 2016

Import db from ubuntu terminal

Just a simple command to handle this. First go to the location where your file is placed and then execute this command. In my case DB username is “root” and password is “toor”. One important thing to remember is there should be no space between “-p” and “DB password”.

mysql -u username -ppassword db_name < xyz.sql
mysql -u root -ptoor db_name < xyz.sql