I am using Mysql community edition. I want to know how can I find last few queries fired on current instance of mysql? Is there any command or query that lists out what were last 20 queries and their memory consumption? If there is no command, whether queries are logged anywhere?
Another thing I want to know is there any command that shows currently fired queries? Something like top command on Linux systems.