3 ms·
Is this like pipe view? This was used as an example on monitoring a MySQL restore. The command was: pv sqlfile.sql | mysql -uxxx -pxxxx dbname It seems tha
by chris_wot 5y ago
Is this like pipe view?
This was used as an example on monitoring a MySQL restore. The command was:
pv sqlfile.sql | mysql -uxxx -pxxxx dbname
It seems that pv copies the file to standard output, MySQL then consumes this. The normal command is
mysql -u user -p pass < sqlfile.sql
But this shows no progress output.
- mbreese 5y agoNo. pv shows a progress bar when data is moving through a pipe. This samples data as it moves through a pipe. The difference being, pv is more like a fancy version of cat (and more, but that’s the primary use case). This samples data that is being piped around, so you can see the actual data, not just the progress.