Results 1 to 6 of 6

Thread: Mysql-slow-queries

  1. #1
    Member ullalla's Avatar
    Join Date
    Jan 2006
    Posts
    192

    Default Mysql-slow-queries

    I am having 1 question on mysql-slow-queries.

    If we enable mysql-slow queries on server then is it possible to check the slow queries date wise at /var/log/mysql-slow-queries?


    A quick assistance is appreciated.

  2. #2
    Member coderiser's Avatar
    Join Date
    Jan 2011
    Posts
    18

    Default Re: Mysql-slow-queries

    try using this mysql tuner to fix the issue MySQLTuner

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Mysql-slow-queries

    Hello ullalla,

    What MySQL version are you using? Can you please indicate which one it is and I can advise how to enable the slow query log in /etc/my.cnf for that MySQL version?

    Code:
    mysql_config --version
    Once it has been enabled, you can then view the logs at the location they will create, although I would suggest getting a script like mysqlsla at http://hackmysql.com/mysqlsla to analyze the logs for you.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member ullalla's Avatar
    Join Date
    Jan 2006
    Posts
    192

    Default Re: Mysql-slow-queries

    i have already enabled it, my question is that can we check the logs date wise?

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    Default Re: Mysql-slow-queries

    I have face this type of problem, I used MySQL updated version to solve this problem.

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Mysql-slow-queries

    Quote Originally Posted by ullalla View Post
    i have already enabled it, my question is that can we check the logs date wise?
    Is there a section for each log entry indicating something like:

    Code:
    SET timestamp=1255345490;
    If so, then these are epoch dates and you'll be able to use a converter like Date/Epoch Time Converter - JavaScript Utilities/Tools - ESQSoft to grab the date you want converted to regular times, then check through the logs for those dates. Since you haven't provided any entries from your log, I cannot state what you have in the log that might be indicating the dates and times.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. MySQL queries slowing down
    By DVDGuy in forum Database Discussions
    Replies: 8
    Last Post: 04-15-2011, 10:30 AM
  2. mysql couple slow queries to TABLE_SCHEMA
    By hekri in forum Database Discussions
    Replies: 17
    Last Post: 01-28-2011, 12:57 AM
  3. mysql couple slow queries to TABLE_SCHEMA
    By hekri in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 07-30-2010, 02:25 PM
  4. MySQL queries
    By paszczak000 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 12-23-2008, 10:18 AM
  5. MySQL Slow on certain queries
    By Acieke in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 08-10-2007, 01:36 PM