MySql in Bash: Show only errors

Posted by TRWTFCoder on Server Fault See other posts from Server Fault or by TRWTFCoder
Published on 2012-11-08T18:15:58Z Indexed on 2012/11/10 23:02 UTC
Read the original article Hit count: 95

Filed under:
|
|

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!

© Server Fault or respective owner

Related posts about linux

Related posts about mysql