1. /etc/mysql/mysql.conf.d$ vim mysqld.cnf
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
#
# Log all queries
# Be aware that this log type is a performance killer.
general_log_file = /var/log/mysql/query.log
general_log = 1
2. $ tail -f /var/log/mysql/query.log