How to see whether db was hit or not when I run query in my app Sorry if the question is stupid, but I have some strange behaviour in my app, and I want to see what is queried in mysql db in real time. Is that possible? Or not in real time, some logs with time with seconds will work as well.
Thanks a lot beforehand.
Realtime -- I don't think so.

Log -- Turn on the "general log".  (The specifics depend on the version of MySQL you are running.)  That will write all queries to a file or table for later inspection.  Be sure to turn off the General log after you are finished; it could fill up disk rather fast.