When importing a large MySQL dump file, use pv to monitor the progress of data through a pipe:
pv -petr dumpfile.sql | mysql -uroot my_database
This will give you a progress indicator such as:
0:00:05 [3.63MB/s] [===> ] 0% ETA 0:09:41
A coder’s daily explorations through PHP, Java, CSS, JavaScript, Linux, OS X, Apache, Tomcat, and everything else.
{ 2011 03 08 }
When importing a large MySQL dump file, use pv to monitor the progress of data through a pipe:
pv -petr dumpfile.sql | mysql -uroot my_database
This will give you a progress indicator such as:
0:00:05 [3.63MB/s] [===> ] 0% ETA 0:09:41
Post a Comment