Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Help me with my.cnf

Discussion in 'Workarounds and Optimization' started by norival1992, Sep 16, 2013.

  1. norival1992

    norival1992 Registered

    Feb 18, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
     >>  MySQLTuner 1.2.0_1 - Major Hayden <>
     >>  Bug reports, feature requests, and downloads at [url][/url]
     >>  Run with '--help' for additional options and output filtering
    -------- General Statistics --------------------------------------------------
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.5.32-cll
    [OK] Operating on 64-bit architecture
    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
    [--] Data in MyISAM tables: 7M (Tables: 41)
    [--] Data in InnoDB tables: 6M (Tables: 71)
    [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
    [!!] Total fragmented tables: 3
    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 15m 47s (6K q [6.724 qps], 1K conn, TX: 3M, RX: 835K)
    [--] Reads / Writes: 82% / 18%
    [--] Total buffers: 168.0M global + 2.8M per thread (151 max threads)
    [OK] Maximum possible memory usage: 583.2M (56% of installed RAM)
    [OK] Slow queries: 0% (0/6K)
    [OK] Highest usage of available connections: 13% (20/151)
    [OK] Key buffer size / total MyISAM indexes: 8.0M/4.7M
    [OK] Key buffer hit rate: 98.1% (29K cached / 565 reads)
    [!!] Query cache is disabled
    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 189 sorts)
    [OK] Temporary tables created on disk: 10% (22 on disk / 213 total)
    [!!] Thread cache is disabled
    [OK] Table cache hit rate: 95% (158 open / 165 opened)
    [OK] Open file limit used: 13% (135/1K)
    [OK] Table locks acquired immediately: 100% (4K immediate / 4K locks)
    [OK] InnoDB data size / buffer pool: 6.6M/128.0M
    -------- Recommendations -----------------------------------------------------
    General recommendations:
        Run OPTIMIZE TABLE to defragment tables for better performance
        MySQL started within last 24 hours - recommendations may be inaccurate
        Enable the slow query log to troubleshoot bad queries
        Set thread_cache_size to 4 as a starting value
    Variables to adjust:
        query_cache_size (>= 8M)
        thread_cache_size (start at 4)
    Please help create the best my.cnf. Thank you very much!
  2. MaestriaNick

    MaestriaNick Well-Known Member

    Aug 6, 2008
    Likes Received:
    Trophy Points:
    Can you paste the current mysql variables here. That will be helpful to suggest the changes
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's recommended that MySQL run for at least 24 hours before using the MySQL tuner script for the most accurate results.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. thinkbot

    thinkbot Well-Known Member

    Oct 30, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    add query cache

    query_cache_type = 1
    query_cache_size = 30M
    query_cache_limit = 1M

    key_buffer_size = 50M
    thread_cache_size = 20

    the rest is fine

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice