Output MySQL source results to log file
问题 I am trying to execute foo.sql using the source command in MySQL. When I type the command, the file is sourced accordingly: mysql> source ~/foo.sql Now, there are a lot of statements being executed in this file and I would like to review the success/failure of these statements. Is there a way I can pipe the results of the statements to a log file, foo.txt? I am thinking something along the lines of: mysql> source ~/foo.sql into outfile ~/foo.txt However, typing this command appears to assume