I often import MySQL databases, and this can take a while. There is no progress indicator whatsoever. Can one be shown, somehow? Either records imported, MB imported, or tables imported... anything is better than just waiting. Anybody any idea?
I use this command:
mysql -uuser -p -hhost database < largefile.sql
Files are between 40-300 MB, and the host is within the local network.
pv,cpipe) work in this scenario? – sr_ Apr 18 '12 at 15:27pvis exactly what the questioner searches for. I just installed it on CentOS via rpmforge. If given the size-parameter it will even show an ETA. – Nils Apr 18 '12 at 19:13pvdid the trick indeed! If somebody can make this an answer, I can accept this! – user1162541 Jun 14 '12 at 11:34