Enter the following lines in /etc/my.cnf and restart mysql

# enable slow query log
#This is a great tool for checking what queries take too long
log-slow-queries=/tmp/slow_queries.log
log-update = /var/lib/mysql/updates.log