Thanks for your help. Essentially, I want to get more detailed error reporting. So SHOW WARNINGS is only supported after 4.1 and we're on version 4.0.
It seems odd though that I'm still not getting errors to show up in the log files, if they're generated at the mysql> prompt or in a php script. The mysql configuration file has error logging on-
log-error=Z:/mysql/logs/error.log
log-slow-queries=Z:/mysql/logs/slow.log
errors.log has some general information-
010228 11:23:05 Aborted connection 19 to db: 'test' user: 'foo' host: `11.11.111.71' (Got an error reading communication packets)
Another option would be to tee the command prompt session to some file but this doesn't seem to work if you pipe in commands. In other words, I can
mysq.exe --user=foo --tee=log.txt
mysql> SHOW VARIABLES;
And they all show up in the file. If I try
mysq.exe --user=foo --tee=log.txt < showvariables.sql
nothing shows up.
Has anyone else run into problems with this logging sql with errors?