Is there a way to view past mysql queries with phpmyadmin?

前端 未结 13 762
北恋
北恋 2020-12-24 04:32

I\'m trying to track down a bug that\'s deleting rows in a mysql table.

For the life of me I can\'t track it down in my PHP code, so I\'d

13条回答
  •  情歌与酒
    2020-12-24 04:38

    To view the past queries simply run this query in phpMyAdmin.

    SELECT * FROM `general_log`
    

    if it is not enabled, run the following two queries before running it.

    SET GLOBAL log_output = 'TABLE';
    SET GLOBAL general_log = 'ON';
    

提交回复
热议问题