The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please help me to configure the MYSQL "my.cnf"

Discussion in 'Workarounds and Optimization' started by MR-GEORGIA, Aug 10, 2013.

  1. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    -------- General Statistics --------------------------------------------------
    Code:
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.1.70-cll
    [OK] Operating on 64-bit architecture
    
    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
    [--] Data in MyISAM tables: 1G (Tables: 16321)
    [--] Data in InnoDB tables: 18M (Tables: 928)
    [--] Data in MEMORY tables: 0B (Tables: 27)
    [!!] Total fragmented tables: 1229
    
    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 4m 36s (85K q [310.304 qps], 5K conn, TX: 170M, RX: 8M)
    [--] Reads / Writes: 88% / 12%
    [--] Total buffers: 34.0M global + 2.7M per thread (151 max threads)
    [OK] Maximum possible memory usage: 449.2M (2% of installed RAM)
    [OK] Slow queries: 0% (0/85K)
    [OK] Highest usage of available connections: 13% (20/151)
    [OK] Key buffer size / total MyISAM indexes: 8.0M/953.0M
    [OK] Key buffer hit rate: 99.3% (18M cached / 134K reads)
    [!!] Query cache is disabled
    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 9K sorts)
    [!!] Joins performed without indexes: 3
    [!!] Temporary tables created on disk: 32% (1K on disk / 5K total)
    [!!] Thread cache is disabled
    [!!] Table cache hit rate: 0% (64 open / 68K opened)
    [OK] Open file limit used: 0% (125/50K)
    [OK] Table locks acquired immediately: 99% (73K immediate / 73K locks)
    [!!] InnoDB data size / buffer pool: 18.8M/8.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
        Adjust your join queries to always utilize indexes
        When making adjustments, make tmp_table_size/max_heap_table_size equal
        Reduce your SELECT DISTINCT queries without LIMIT clauses
        Set thread_cache_size to 4 as a starting value
        Increase table_cache gradually to avoid file descriptor limits
    Variables to adjust:
        query_cache_size (>= 8M)
        join_buffer_size (> 128.0K, or always use indexes with joins)
        tmp_table_size (> 16M)
        max_heap_table_size (> 16M)
        thread_cache_size (start at 4)
        table_cache (> 64)
        innodb_buffer_pool_size (>= 18M)
     
  2. MR-GEORGIA

    MR-GEORGIA Active Member

    Joined:
    Feb 3, 2013
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I know, but what configuration Write?
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    As per the your server config MySQLTuner script recommend you to adjust the following configuration on your server

     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's important to ensure MySQL has been running for at least 24 hours before running the MySQL tuner script to ensure accurate results.

    Thank you.
     
Loading...

Share This Page