Tags: howto
When importing large MySQL dumps it's useful to get an idea of progress and ETA. The utility `pv` can do this.
Here's an example:
pv dump.sql | mysql -uUser -pPassword Database |
pv dump.sql.gz | zcat | mysql -uUser -pPassword Database |
The output should look something like this:
[root@localhost ~]# pv /root/mysqldump.sql.gz | zcat | mysql -uroot -pPassword Database 83.5MiB 0:01:50 [1.04MiB/s] [=============================================================================> ] 41% ETA 0:02:34 |