編集部 All About
MySQL、PostgreSQL、SQLite
更新日:2004年07月22日
MySQLのチューニングについて解説します。
| shell> mysqld --help |
innodb_force_recovery 0 interactive_timeout 28800 join_buffer_size 131072 key_buffer_size 8388572 long_query_time 10 lower_case_table_names TRUE max_allowed_packet 1048576 max_binlog_cache_size 4294967295 max_binlog_size 1073741824 max_connections 100 max_connect_errors 10 max_delayed_threads 20 max_heap_table_size 16777216 max_join_size 4294967295 max_relay_log_size 0 max_seeks_for_key 4294967295 max_sort_length 1024 max_tmp_tables 32 max_user_connections 0 max_write_lock_count 4294967295 bulk_insert_buffer_size 8388608 myisam_block_size 1024 myisam_max_extra_sort_file_size 268435456 myisam_max_sort_file_size 2147483647 myisam_repair_threads 1 myisam_sort_buffer_size 8388608 net_buffer_length 16384 net_retry_count 10 net_read_timeout 30 net_write_timeout 60 open_files_limit 0 query_alloc_block_size 8192 query_cache_limit 1048576 query_cache_size 0 query_cache_type 1 query_prealloc_size 8192 read_buffer_size 131072 read_rnd_buffer_size 262144 record_buffer 131072 relay_log_space_limit 0 slave_compressed_protocol FALSE slave_net_timeout 3600 range_alloc_block_size 2048 read-only FALSE slow_launch_time 2 sort_buffer_size 2097116 table_cache 64 thread_concurrency 10 thread_cache_size 0 tmp_table_size 33554432 thread_stack 196608 transaction_alloc_block_size 8192 transaction_prealloc_size 4096 wait_timeout 28800 default-week-format 0 |
shell> mysqld_safe --key_buffer_size=64M --table_cache=256 --sort_buffer_size=4M --read_buffer_size=1M & |
[client] # ここから クライアント全てに対するパラメターの設定を指定します #[safe_mysqld] # safe_mysqld に与えるオプション #[mysqld_safe] [mysqld] # ここから サーバーに対するパラメターの設定を指定します set-variable = key_buffer=32M set-variable = table_cache=256 [mysql] # password=my_password で、mysql コマンドに接続する場合に使用します password=my_password #[mysqldump] #[odbc] |
(執筆者:堀江 美彦)
この記事の担当ガイド

編集部 All About