my.cnf 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [safe_mysqld]
  2. datadir = @l_prefix@/var/mysql/db
  3. socket = @l_prefix@/var/mysql/mysqld.sock
  4. set-variable = pid_file=@l_prefix@/var/mysql/mysqld.pid
  5. set-variable = max_connections=1000
  6. port = 3306
  7. user = @l_rusr@
  8. basedir = @l_prefix@
  9. # Logfile destinations - you must update rc.mysql accordingly
  10. log = @l_prefix@/var/mysql/common.log
  11. log-update = @l_prefix@/var/mysql/update.log
  12. # these are the most important tuning parameters for mysqld
  13. set-variable = key_buffer_size=16M
  14. set-variable = table_cache=64
  15. # change these parameters if special problems occur
  16. set-variable = join_buffer_size=1M
  17. set-variable = max_connections=1000
  18. set-variable = max_connect_errors=10
  19. set-variable = max_delayed_threads=20
  20. set-variable = max_heap_table_size=16777216
  21. set-variable = max_sort_length=1024
  22. set-variable = max_user_connections=0
  23. set-variable = record_buffer=131072
  24. set-variable = record_rnd_buffer=131072
  25. set-variable = sort_buffer=2M
  26. set-variable = key_buffer=1M
  27. set-variable = tmp_table_size=32M
  28. #
  29. # BERKELEY DB
  30. #
  31. # memory parameters - set these to values <> 0 if bdb
  32. # tables are used
  33. set-variable = bdb_cache_size=@mysql_bdb_cache_size@
  34. set-variable = bdb_log_buffer_size=@mysql_bdb_log_buffer_size@
  35. set-variable = bdb_max_lock=@mysql_bdb_max_lock@
  36. #
  37. # INNOBASE
  38. #
  39. # The common part of the directory path for all InnoDB datafiles.
  40. # default is the mysql data directory
  41. #innodb_data_home_dir =
  42. # Tablespaces
  43. # specify a list of pathtodatafile:sizespecification separated
  44. # by semicolon. The last datafile can have options
  45. # - :autoextend increment datafile in 8M chunks
  46. # - :max:sizespecification max size of the datafile
  47. #innodb_data_file_path=@innodb_data_file_path@
  48. # Tunings
  49. # Set buffer pool size to 50 -80 % of your computer's memory
  50. # Set the log file size to about 25 % of the buffer pool size
  51. # Set ..flush_log_at_trx_commit to 0 if you can afford losing
  52. # some last transactions
  53. # Set innodb_lock_wait_timeout to bail out of external deadlocks
  54. #set-variable = innodb_buffer_pool_size=70M
  55. #set-variable = innodb_additional_mem_pool_size=2M
  56. #set-variable = innodb_log_files_in_group=3
  57. #set-variable = innodb_log_file_size=20M
  58. #set-variable = innodb_log_buffer_size=8M
  59. #innodb_flush_log_at_trx_commit=1
  60. #set-variable = innodb_lock_wait_timeout=50