MySql in Bash: Show only errors
- by TRWTFCoder
Let me first start off by saying I am not an experienced linux user.
I am trying to debug a mysql script in linux, however, my issue is that most of the queries are successful so I can not see the error messages because they scroll off the screen. I am executing the queries from a large file using the \. command.
I was wondering if there was a way to show ONLY the error messages when I exececute the sql file. Right now it is showing both error messages and Query OK,....
I don't really care about the queries that are ok, just the errors.
Thanks!