I’m trying to restore/import a MySQLdump file using the following command (on Windows, version 5.x.x):
mysqldump -u root -p --all-databases < myfile.sql
However, in the middle of processing, the command prompt window starts beeping like crazy. Is it possible to remove the output of the mysqldump command (which I’m assuming is what is causing this sound to occur)? The file in question is slightly more than 200MB.
I’ve looked at the flags and only seems to be –verbose that would help me. However, it seems that it wouldn’t be able to stop the output in the command prompt window (but add more output?).
Edit #1
One answer, that has been removed, suggested piping the output /dev/null. I’m on Windows and I have no idea what would be the equivalent. If I pipe it to an actual file, I would be in effect almost duplicating my dump to another file? Why is the restore outputting to the prompt in the first place?
I think you really intend to run
(your redirection is the wrong way around)
mysqldump writes out to a file. To import from that file, you would use