MySQL Forums
Forum List  »  General

Re: error logging
Posted by: Rick James
Date: November 13, 2010 11:47PM

Redirect STDERR:
Windows example:
C:\Users\rj>mysql  2>j.err
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 424
Server version: 5.1.30-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select * from non-table;
mysql> exit
Bye

C:\Users\rj>more j.err
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-table' at line 1
C:\Users\rj>

The "2>filename" should work in most *nix shells, too.

Options: ReplyQuote


Subject
Written By
Posted
November 09, 2010 12:50PM
Re: error logging
November 13, 2010 11:47PM
November 15, 2010 09:11AM
November 15, 2010 01:53PM
November 16, 2010 01:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.