title: mysql performance tunning with results of mysqltuner.pl
body: <p>I am using VPS with 1.5GB RAM and burst RAM of 3GB. The VPS is hosting multiple Joomla websites. I want to performance tune mysql. For the purpose I run mysqltuner in my server and here are the results. Please guide for creating a best my.cnf file for my VPS.</p>
  
  <pre><code>    &gt;&gt;  MySQLTuner 1.3.0 - Major Hayden &lt;major@mhtx.net&gt;
  &gt;&gt;  Bug reports, feature requests, and downloads at http://mysqltuner.com/
  &gt;&gt;  Run with '--help' for additional options and output filtering
  [OK] Currently running supported MySQL version 5.6.17
  [!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM
  
  -------- Storage Engine Statistics -------------------------------------------
  [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM 
  [--] Data in MyISAM tables: 661M (Tables: 6305)
  [--] Data in InnoDB tables: 53M (Tables: 964)
  [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 52)
  [--] Data in MEMORY tables: 0B (Tables: 104)
  [!!] Total fragmented tables: 524
  
  -------- Security Recommendations  -------------------------------------------
  [OK] All database users have passwords assigned
  
  -------- Performance Metrics -------------------------------------------------
  [--] Up for: 4d 14h 30m 25s (10M q [25.447 qps], 280K conn, TX: 46B, RX: 1B)
  [--] Reads / Writes: 92% / 8%
  [--] Total buffers: 169.0M global + 1.1M per thread (151 max threads)
  [OK] Maximum possible memory usage: 329.4M (10% of installed RAM)
  [OK] Slow queries: 0% (137/10M)
  [OK] Highest usage of available connections: 40% (61/151)
  [OK] Key buffer size / total MyISAM indexes: 8.0M/167.7M
  [OK] Key buffer hit rate: 100.0% (843M cached / 275K reads)
  [!!] Query cache is disabled
  [OK] Sorts requiring temporary tables: 4% (86K temp sorts / 1M sorts)
  [!!] Joins performed without indexes: 275614
  [OK] Temporary tables created on disk: 21% (430K on disk / 2M total)
  [OK] Thread cache hit rate: 99% (1K created / 280K connections)
  [!!] Table cache hit rate: 0% (2K open / 244K opened)
  [OK] Open file limit used: 68% (3K/5K)
  [OK] Table locks acquired immediately: 99% (11M immediate / 11M locks)
  [OK] InnoDB buffer pool / data size: 128.0M/53.1M
  [OK] InnoDB log waits: 0
  -------- Recommendations -----------------------------------------------------
  General recommendations:
      Run OPTIMIZE TABLE to defragment tables for better performance
      Adjust your join queries to always utilize indexes
      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_type (=1)
      join_buffer_size (&gt; 256.0K, or always use indexes with joins)
      table_open_cache (&gt; 2000)
  </code></pre>