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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:07:34+00:00 2026-05-26T13:07:34+00:00

I need to turn this on/enable it. I found some info on the net

  • 0

I need to turn this on/enable it. I found some info on the net but am very confused now, I don’t know where to start.

This is what I have so far. I logged onto MySQL as root and did:

 show variables like '%log%';

and got:

Variable_name                   | Value                            |
+---------------------------------+----------------------------------+
| back_log                        | 50                               |
| binlog_cache_size               | 32768                            |
| binlog_format                   | STATEMENT                        |
| expire_logs_days                | 10                               |
| general_log                     | ON                               |
| general_log_file                | /var/lib/mysql/helloise.log      |
| innodb_flush_log_at_trx_commit  | 1                                |
| innodb_locks_unsafe_for_binlog  | OFF                              |
| innodb_log_buffer_size          | 1048576                          |
| innodb_log_file_size            | 5242880                          |
| innodb_log_files_in_group       | 2                                |
| innodb_log_group_home_dir       | ./                               |
| innodb_mirrored_log_groups      | 1                                |
| log                             | ON                               |
| log_bin                         | OFF                              |
| log_bin_trust_function_creators | OFF                              |
| log_bin_trust_routine_creators  | OFF                              |
| log_error                       | /var/log/mysql/error.log         |
| log_output                      | FILE                             |
| log_queries_not_using_indexes   | OFF                              |
| log_slave_updates               | OFF                              |
| log_slow_queries                | OFF                              |
| log_warnings                    | 1                                |
| max_binlog_cache_size           | 4294963200                       |
| max_binlog_size                 | 104857600                        |
| max_relay_log_size              | 0                                |
| relay_log                       |                                  |
| relay_log_index                 |                                  |
| relay_log_info_file             | relay-log.info                   |
| relay_log_purge                 | ON                               |
| relay_log_space_limit           | 0                                |
| slow_query_log                  | OFF                              |
| slow_query_log_file             | /var/lib/mysql/helloise-slow.log |
| sql_log_bin                     | ON                               |
| sql_log_off                     | OFF                              |
| sql_log_update                  | ON                               |
| sync_binlog                     | 0  

I did: SET GLOBAL general_log = 1 to set general_log = ON. Will all queries be logged in /var/lib/mysql/helloise.log?

And when I try to access the mysql directory via helloises@helloise:/var/lib$ cd mysql/ I get permission denied

and then I also have a log directory:

helloises@helloise:/var/log$ 

with a whole lot of log files ex: mysql.log

Which log file will contain my queries so I can track what my db is doing and see how long queries take?

  • 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-26T13:07:35+00:00Added an answer on May 26, 2026 at 1:07 pm

    Firs of all you got a permission denied because you hav not the privileges to read it. Try a

    ls -l 
    

    on that file and see what permission are defined. Then yuo can use chmod to change permissions. Or simply try to read that file as a root user.

    The general log is a logging feature for query log, reading, from guide:

    The general query log is a general record of what mysqld is doing. The
    server writes information to this log when clients connect or
    disconnect, and it logs each SQL statement received from clients. The
    general query log can be very useful when you suspect an error in a
    client and want to know exactly what the client sent to mysqld.

    The error log:

    The error log contains information indicating when mysqld was started
    and stopped and also any critical errors that occur while the server
    is running. If mysqld notices a table that needs to be automatically
    checked or repaired, it writes a message to the error log.

    For understand the differences i suggest you to read that site:
    http://dev.mysql.com/doc/refman/5.1/en/server-logs.html

    The file that contains the queries is the one in /var/lib/mysql/helloise.log

    For the slow query logs you can check:

    http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html

    it logs all the query that take more time than long_query_time seconds (that variable must be defined by yourself). I don’t found a way to show the execution time of a query, but check that page http://dev.mysql.com/doc/refman/5.1/en/log-destinations.html it could help you on how to configure general/slowquery logging.
    Hope this help.

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

Sidebar

Related Questions

Ok guys, need to turn off the cookies in my ASP.net site completely I'm
I need to parse some text in a UITextField and turn it into a
Does anyone know how to turn this string: Smith, John R Into this string:
I need to turn this phone number: 5555555555 into this string with delimiters: 555.555.5555
I need to turn the following results... RowID ColumnName Value ======= ============ ========== 200
I have an projector file/Flash application that I need to turn into an interactive
I am writing an application related to location. Nevertheless, I need to turn on
My site is hosted on Azure. I need to programmatically turn off Internet Explorer's
I need to be able to turn pinch-zoom on and off using the viewport
Pivon queries, love em. Turn rows into columns. I need to do a pivot

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.