mysqltuner.sh results help

Hello,

Below are the results for my tuner script, I tried optimizing the tables but it just said that my innodb tables could not be updated.

Also can you please suggest the changes to the my.cnf.

Thank you for your time!

 >>  MySQLTuner 1.3.0 - Major Hayden <major@mhtx.net>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering
[OK] Currently running supported MySQL version 5.1.73-log
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +CSV +InnoDB +MRG_MYISAM 
[--] Data in MyISAM tables: 12M (Tables: 168)
[--] Data in InnoDB tables: 4G (Tables: 2163)
[--] Data in MEMORY tables: 1M (Tables: 86)
[!!] Total fragmented tables: 2168

-------- Security Recommendations  -------------------------------------------
[OK] All database users have passwords assigned

-------- Performance Metrics -------------------------------------------------
[--] Up for: 2d 19h 23m 58s (43M q [179.459 qps], 414K conn, TX: 79B, RX: 16B)
[--] Reads / Writes: 55% / 45%
[--] Total buffers: 8.6G global + 34.2M per thread (512 max threads)
[OK] Maximum possible memory usage: 25.7G (40% of installed RAM)
[OK] Slow queries: 0% (74/43M)
[OK] Highest usage of available connections: 85% (436/512)
[OK] Key buffer size / total MyISAM indexes: 16.0M/3.4M
[OK] Key buffer hit rate: 100.0% (35M cached / 840 reads)
[OK] Query cache efficiency: 94.7% (36M cached / 38M selects)
[!!] Query cache prunes per day: 73060
[OK] Sorts requiring temporary tables: 1% (5K temp sorts / 462K sorts)
[!!] Joins performed without indexes: 2868
[!!] Temporary tables created on disk: 29% (488K on disk / 1M total)
[OK] Thread cache hit rate: 97% (10K created / 414K connections)
[!!] Table cache hit rate: 0% (256 open / 43K opened)
[OK] Open file limit used: 0% (9/2K)
[OK] Table locks acquired immediately: 99% (7M immediate / 7M locks)
[OK] InnoDB buffer pool / data size: 8.0G/4.5G
[!!] InnoDB log waits: 3
-------- Recommendations -----------------------------------------------------
General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    Increasing the query_cache size over 128M may reduce performance
    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
    Increase table_open_cache gradually to avoid file descriptor limits
    Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
Variables to adjust:
    query_cache_size (> 512M) [see warning above]
    join_buffer_size (> 16.0M, or always use indexes with joins)
    tmp_table_size (> 32M)
    max_heap_table_size (> 32M)
    table_open_cache (> 256)
    innodb_log_buffer_size (>= 8M)

Open in new window


[mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
slow-query-log=/var/log/mysqld-slow.log

max_connections = 512

key_buffer_size = 16M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 64M
myisam_max_sort_file_size = 10G
query_cache_size = 512M
query_cache_limit = 2M
thread_cache_size = 8
read_buffer_size = 8M
join_buffer_size = 16M
read_rnd_buffer_size = 8M
slow_query_log = 1
long_query_time = 2
thread_concurrency = 8
table_cache = 128
table_open_cache = 256
table_definition_cache = 512
max_heap_table_size = 32M
tmp_table_size = 32M

innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size = 8G
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 0
innodb_log_buffer_size = 8M
#innodb_log_file_size = 512M
#innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120

max_allowed_packet=16M

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Open in new window

LVL 1
movieprodwAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tomas Helgi JohannssonCommented:
Hi!

You could start with these values
query_cache_size = 1024M
    join_buffer_size = 32M
    tmp_table_size  = 128M
    max_heap_table_size  = 128M
    table_open_cache = 1024
    innodb_log_buffer_size = 32M

Regards,
     Tomas Helgi
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
movieprodwAuthor Commented:
I have made those changes, thank you.
0
Tomas Helgi JohannssonCommented:
Hi!

If you are satisfied with those settings that I provided then
please accept my comment as an answer. :)

Regards,
     Tomas Helgi
0
movieprodwAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.