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 179653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:26:42+00:00 2026-05-11T14:26:42+00:00

Is there any query/way to show the last queries executed on ALL servers?

  • 0

Is there any query/way to show the last queries executed on ALL servers?

  • 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. 2026-05-11T14:26:43+00:00Added an answer on May 11, 2026 at 2:26 pm

    For those blessed with MySQL >= 5.1.12, you can control this option globally at runtime:

    1. Execute SET GLOBAL log_output = 'TABLE';
    2. Execute SET GLOBAL general_log = 'ON';
    3. Take a look at the table mysql.general_log

    If you prefer to output to a file instead of a table:

    1. SET GLOBAL log_output = 'FILE'; the default.
    2. SET GLOBAL general_log_file = '/path/to/your/logfile.log';
    3. SET GLOBAL general_log = 'ON';

    I prefer this method to editing .cnf files because:

    1. you’re not editing the my.cnf file and potentially permanently turning on logging
    2. you’re not fishing around the filesystem looking for the query log – or even worse, distracted by the need for the perfect destination. /var/log /var/data/log /opt /home/mysql_savior/var
    3. You don’t have to restart the server and interrupt any current connections to it.
    4. restarting the server leaves you where you started (log is by default still off)

    For more information, see MySQL 5.1 Reference Manual – Server System Variables – general_log

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

Sidebar

Related Questions

Is there any alternate way to create stored procedure without putting all query in
Is there any way to get the work item query results preview pane to
Is there any better way to make this query work? I'm looking for a
Is there any way to create a pivot and/or cross-tab query using for SQLite
Is there any way to debug a SQL Server 2008 query?
is there any way to avoid using tmp table? I am using a query
is there any way to avoid using tmp table? I am using a query
When searching, is there a way to disable scoring for any query? The scenario
Is there is any way to get the select Random Records using query from
is there any way how to optimize next query: EXPLAIN EXTENDED SELECT keyword_id, ck.keyword,

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.