Import Database with Progress Bar

Installing/importing database in mysql is usually done as following..

mysql -u[UserName]-p[Password] [DatabBaseName] < /[File_Name].sql

Now if you want to import database and want to monitor the progress while importing, you need to install pipe-viewer on you machine then you can use this command

pv [File_Name].sql | mysql -u[UserName] -p[Password] dbname