Mysql command does not have any means of monitoring the progress of sql file import. One method that I found useful in monitoring mysql import, is by using pipeviewer(pv) command. To install pipeviewer in a centos box:
Install epel repository
# yum install epel-release -y
Install pv
# yum install pv -y
To use the pv command to monitor mysql import progress
# pv mydatabase.sql | mysql -u myusername -p mydatabase
You will get progress bar showing how much data has been imported from the sql file to mysql.
Tuesday, January 15, 2019
Monitor the progress of mysql import
Labels:
mysql
Subscribe to:
Posts (Atom)