Timeline for How can I force the MySQL client to output to stdout or a log file when importing a SQL file?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 5, 2022 at 13:02 | comment | added | dbdemon |
You need the verbose option to make it print the statements and number of rows affected: mysql -v -v --force < 10k-file.sql > import.log 2>&1 Note that the -v is given twice to make it more verbose.
|
|
Jun 24, 2020 at 16:02 | history | answered | RolandoMySQLDBA | CC BY-SA 4.0 |