my.cnf 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ##
  2. ## my.cnf -- MySQL configuration
  3. ##
  4. [client]
  5. socket = @l_prefix@/var/mysql/mysql.sock
  6. port = 3306
  7. [mysqld]
  8. #
  9. # Network settings
  10. #
  11. bind-address = 127.0.0.1
  12. port = 3306
  13. # Unix domain socket only, disables TCP/IP
  14. #skip-networking
  15. #
  16. # Log file settings
  17. #
  18. # log file destinations (must be in sync with settings in rc.conf)
  19. log = @l_prefix@/var/mysql/common.log
  20. # binary log (use instead of log-update, server-id must be unique for
  21. # replication)
  22. #log-bin = @l_prefix@/var/mysql/binary.log
  23. #server-id = 1
  24. #
  25. # Performance settings
  26. #
  27. # most important tuning parameters for mysqld
  28. key_buffer_size=64M
  29. table_cache=256
  30. # less important tuning parameters (change if special problems occur)
  31. join_buffer_size=1M
  32. max_connections=1000
  33. max_connect_errors=10
  34. max_delayed_threads=20
  35. max_heap_table_size=16777216
  36. max_sort_length=1024
  37. max_user_connections=1000
  38. record_buffer=131072
  39. sort_buffer=4M
  40. key_buffer=1M
  41. tmp_table_size=32M
  42. # permanent query caching
  43. query_cache_type=1
  44. # maximum caching size of an individual query
  45. query_cache_limit=1M
  46. # maximum query cache size
  47. query_cache_size=32M
  48. # minimum chars for full-text search (FTS) index
  49. #ft_min_word_len=3
  50. <with_innobase>
  51. # Innobase DB
  52. innodb_buffer_pool_size=70M
  53. innodb_additional_mem_pool_size=2M
  54. innodb_log_files_in_group=3
  55. innodb_log_file_size=20M
  56. innodb_log_buffer_size=8M
  57. innodb_lock_wait_timeout=50
  58. </with_innobase>
  59. #
  60. # Miscellaneous
  61. #
  62. # directory for temporary tables
  63. tmpdir=@l_prefix@/var/mysql/tmp
  64. [mysqld_safe]
  65. datadir = @l_prefix@/var/mysql
  66. socket = @l_prefix@/var/mysql/mysql.sock
  67. pid_file = @l_prefix@/var/mysql/mysqld.pid
  68. user = @l_rusr@
  69. basedir = @l_prefix@