Jeff Roberts
RHCE #804006066322833
Vim-Fu is now iPhone and Android friendly

Check out the Vim-Fu Store!

Vim-Fu

MySQL tuning script

This is really useful script called tuning-primer.sh by Matt Montgomery.

It is a shell script that evaluates the following parameters in MySQL:

  • slow query count
  • long_query_time
  • query_cache_size
  • % query cache actually used
  • max_connections
  • thread_cache
  • key_buffer_size
  • ratio of sort_merge operations to sorts (sort_buffer_size)
  • number of full joins
  • ratio of disk tmp tables vrs in memory tmp tables (tmp_table_size)
  • table_cache
  • ratio of table locks immediate to table locks waited
  • ratio of table scans (read_buffer_size)

To use the script add your user name and password to a [client] group in your ~/.my.cnf file

1 comment to MySQL tuning script

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>