+1 to @MartinNuc, you can start the mysql client in batch mode, and then you wonβt see a long stream of OK lines.
The time taken to import this SQL file depends on many factors. Not only the file size, but also the type of instructions in it, how powerful the server server is and how many other functions work simultaneously.
@MartinNuc says that it can load 4 GB of SQL in 4-5 minutes, but I ran 0.5 GB of SQL files and it took 45 minutes on a smaller server.
We cannot guess how long it will take to run your SQL script on your server.
Repeat your comment
@MartinNuc is correct, you can choose the mysql client to print each statement. Or you can open a second session and run mysql> SHOW PROCESSLIST to find out what works. But you are probably more interested in the figure "interest rate" or an estimate of how long it will take to complete the remaining statements.
Sorry, there is no such function. The mysql client does not know how long it will take to run later statements, or even how many there are. Therefore, he cannot give a meaningful estimate of how long it will take to complete.
Bill Karwin Oct 20 '13 at 9:39
source share