Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6873777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:06:43+00:00 2026-05-27T04:06:43+00:00

This is on MySQL 5.0. I have a legacy program that had a weird

  • 0

This is on MySQL 5.0.

I have a legacy program that had a weird occurrence happen where it set every value for a column in the database to ’19’. We are confident we’ve tracked down most every way it could happen, but there’s literally hundreds of queries, all getting built in line, that could be changing this.

Some think we were hacked, but the code is so spaghetti anything could of happened.

Instead of getting into each method and trying to fire it off (which… I didn’t see anything obvious that’d do this, so we’re talking days…) I’m wondering if I can set a trigger to record the queries being ran on a table. This way we can monitor how it happened and hopefully find the culprit.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:06:44+00:00Added an answer on May 27, 2026 at 4:06 am

    You cannot use a trigger to record queries.

    However you can use the logging facilities in MySQL to track the queries run.

    The general query log looks to be the most useful for your purpose:
    http://dev.mysql.com/doc/refman/5.1/en/query-log.html

    The link will give you all the details you need.
    Note that turning the general log on will slow down your server a lot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, my problem is this. I have a legacy MySQL database that I'm building
I have a legacy mysql database and there's this table which has a few
In a legacy MySQL database I have a table with a field that is
Well I have this MySQL stored procedure that I wrote and if I run
I have this mySQL code that connects to my server. It connects just fine:
I need to have MySQL query like this one: UPDATE table_name SET 1 =
This is the MySQL table structure that I have: itemID (BIGINT) userID (BIGINT) wasAdded
I have a legacy Alpha server with a RDB database. This db is replicated
I have a legacy database that I connect to and not sure why I
Forgive me, I am new to mysql I have this mysql table: |ID|KeyID1|KeyID2|Param|Value|... |asdf|1|2|

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.