Logging Errors (error log) setting for # in /etc/my.cnf or my.ini (Windows)
# in /etc/my.cnf or my.ini (Windows) [mysqld] log-error=/var/log/mysql/mysqlerrorlog