edit /etc/my.cnf
at the section on mysqld, add following line
log-error=path-to-error-log
then restart mysql
# /etc/init.d/mysql stop # /etc/init.d/mysql start