LoginSignup
1
1

More than 5 years have passed since last update.

mysqlサーバのチューニング

Posted at

mysqlサーバのチューニング

my.cnfで最低限調整した方が良い設定項目をメモしておく。
この設定でクエリキャッシュも有効にしている。

innodb_buffer_pool_size = 512M
innodb_log_file_size=128M
key_buffer_size = 512M
read_buffer_size = 1M
sort_buffer_size = 1M
read_rnd_buffer_size = 4M
query_cache_type=1
query_cache_size = 128M
query_cache_limit = 2M

数値はすべて仮。

尚、innodb_log_file_sizeを調整した後、初回起動時にlogファイルを削除しておかないと起動エラーになるといった情報もあるが、それは5.6.8以前の模様。
再起動してもなんのエラーも発生しなかった。
下記にもその記述があり。
https://dev.mysql.com/doc/refman/5.6/ja/innodb-data-log-reconfiguration.html

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1