Software >> Services >> RDBMS >> MYSQL >>  How to enable mysql error log

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