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

前端 未结 13 732
北恋
北恋 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:54

    why dont you use export, then click 'Custom - display all possible options' radio button, then choose your database, then go to Output and choose 'View output as text' just scroll down and Go. Voila!

    0 讨论(0)
  • 2020-12-24 04:57

    I may be wrong, but I believe I've seen a list of previous SQL queries in the session file for phpmyadmin sessions

    0 讨论(0)
  • 2020-12-24 04:57

    There is a tool called Adminer which is capable of doing all phpmyadmin job packed in single tiny php file. http://www.techinfobit.com/how-to-import-export-database-without-any-extra-installation/

    0 讨论(0)
  • 2020-12-24 04:59

    OK so I know I'm a little late and some of the above answers are great stuff.

    As little extra though, while in any PHPMyAdmin page:

    1. Click SQL tab
    2. Click 'Get auto saved query'

    this will then show your last entered query.

    0 讨论(0)
  • 2020-12-24 05:00

    I don't think phpMyAdmin lets you do that, but I'd like to hear I'm wrong.

    On the other hand you can enable query logging in MySQL: The General Query Log

    0 讨论(0)
  • 2020-12-24 05:00

    You have to click on query window just below the phpMyAdmin logo, a new window will open. Just click on SQL History tab. There you can see history of SQL Queries.

    0 讨论(0)
提交回复
热议问题