How to show the last queries executed on mysql
If you wish to see all queries being executed while developing php applications on ubuntu server, you should add the following changes inorder to see all the queries being executed.
Open the file /etc/mysql/my.cnf and edit the information listed below
log = /var/log/mysql/mysql.log
service mysql restart
tail -f /var/log/mysql/mysql.log