-1

How can I see what SQL queries phpmyadmin runs to execute commands? I want to create a not easy database, first using phpmyadmin, then using php code. But when I create the table with phpmyadmin, it doesn't show the commands it uses to create or select a table.

Is there any way? :)

Thanks!

ps.: mysql version: 5.6.12

larsAnders
  • 3,813
  • 1
  • 15
  • 19
user3290356
  • 95
  • 1
  • 10

2 Answers2

1

You can edit your my.cnf file and add this line:

log=/var/log/mysql.log

Next you can monitor that file using tail with this command:

tail -f var/log/mysql/mysql.log

And you will see all queries on real time :)

Arnold Roa
  • 7,335
  • 5
  • 50
  • 69
0

This question is perhaps already answered in older Stack Overflow questions Log all queries in mysql or How to enable MySQL Query Log?

(I used Google "mysql query logger" to find them)

Community
  • 1
  • 1
xmojmr
  • 8,073
  • 5
  • 31
  • 54