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

  • Home
  • SEARCH
  • 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 3492202
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:43:47+00:00 2026-05-18T11:43:47+00:00

From time to time I need to parse my mysql binlog to find out

  • 0

From time to time I need to parse my mysql binlog to find out which query changed a specific value in my database.

A query entry looks like this:

# at 335156
#101208  5:55:57 server id 1  end_log_pos 335265    
         Query  thread_id=1772  exec_time=0 error_code=0
SET TIMESTAMP=1291784157/*!*/;
UPDATE table SET value = 0 WHERE id = 185555

Now If I figured out the specific query I have the thread_id but where do I find the corrosponding user / ip from this entry?

  • 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-18T11:43:48+00:00Added an answer on May 18, 2026 at 11:43 am

    First you have to enable the genereral query log http://dev.mysql.com/doc/refman/5.5/en/query-log.html

    Then you can find all connects and what queries they ran there. I word of warning, this log gets big so use with care.

    This is an example of my connect as root to my local server just now.

    101208 10:55:18      5667 Connect  root@localhost on 
                         5667 Query select @@version_comment limit 1
    101208 10:55:26      5667 Query show databases
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to perform a LINQ query for both a time period from a
I need to populate a context menu from a database at run time. I
I need to parse a date/time string from user input, and convert to UTC
I make a lot of web applications and from time to time I need
From time to time, I need to dump USB traffic under Windows, mostly to
I've got a php file echoing hashes from a MySQL database. This is necessary
I'm struggling to figure out how to compare MySQL dates with current system time
I need to parse dates and times from strings. The Problem is that the
I need to parse sections from a string of HTML. For example: <p>Lorem ipsum
From time to time I see an enum like the following: [Flags] public enum

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.