home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 July & August / PCWorld_2002-07-08_cd.bin / Komunik / MySQL / mysql / data1.cab / Servers / my-huge.cnf next >
Text File  |  2002-02-21  |  3KB  |  88 lines

  1. # Example mysql config file for very large systems.
  2. #
  3. # This is for large system with memory of 1G-2G where the system runs mainly
  4. # MySQL.
  5. #
  6. # You can copy this file to
  7. # /etc/my.cnf to set global options,
  8. # mysql-data-dir/my.cnf to set server-specific options (in this
  9. # installation this directory is /usr/local/mysql/var) or
  10. # ~/.my.cnf to set user-specific options.
  11. #
  12. # One can in this file use all long options that the program supports.
  13. # If you want to know which options a program support, run the program
  14. # with --help option.
  15.  
  16. # The following options will be passed to all MySQL clients
  17. [client]
  18. #password    = your_password
  19. port        = 3306
  20. socket        = /tmp/mysql.sock
  21.  
  22. # Here follows entries for some specific programs
  23.  
  24. # The MySQL server
  25. [mysqld]
  26. port        = 3306
  27. socket        = /tmp/mysql.sock
  28. skip-locking
  29. set-variable    = key_buffer=384M
  30. set-variable    = max_allowed_packet=1M
  31. set-variable    = table_cache=512
  32. set-variable    = sort_buffer=2M
  33. set-variable    = record_buffer=2M
  34. set-variable    = thread_cache=8
  35. # Try number of CPU's*2 for thread_concurrency
  36. set-variable    = thread_concurrency=8
  37. set-variable    = myisam_sort_buffer_size=64M
  38. log-bin
  39. server-id    = 1
  40.  
  41. # Point the following paths to different dedicated disks
  42. #tmpdir        = /tmp/        
  43. #log-update     = /path-to-dedicated-directory/hostname
  44.  
  45. # Uncomment the following if you are using BDB tables
  46. #set-variable    = bdb_cache_size=384M
  47. #set-variable    = bdb_max_lock=100000
  48.  
  49. # Uncomment the following if you are using Innobase tables
  50. #innodb_data_file_path = ibdata1:2000M;ibdata2:2000M
  51. #innodb_data_home_dir = /usr/local/mysql/var/
  52. #innodb_log_group_home_dir = /usr/local/mysql/var/
  53. #innodb_log_arch_dir = /usr/local/mysql/var/
  54. #set-variable = innodb_mirrored_log_groups=1
  55. #set-variable = innodb_log_files_in_group=3
  56. #set-variable = innodb_log_file_size=5M
  57. #set-variable = innodb_log_buffer_size=8M
  58. #innodb_flush_log_at_trx_commit=1
  59. #innodb_log_archive=0
  60. #set-variable = innodb_buffer_pool_size=16M
  61. #set-variable = innodb_additional_mem_pool_size=2M
  62. #set-variable = innodb_file_io_threads=4
  63. #set-variable = innodb_lock_wait_timeout=50
  64.  
  65. [mysqldump]
  66. quick
  67. set-variable    = max_allowed_packet=16M
  68.  
  69. [mysql]
  70. no-auto-rehash
  71. # Remove the next comment character if you are not familiar with SQL
  72. #safe-updates
  73.  
  74. [isamchk]
  75. set-variable    = key_buffer=256M
  76. set-variable    = sort_buffer=256M
  77. set-variable    = read_buffer=2M
  78. set-variable    = write_buffer=2M
  79.  
  80. [myisamchk]
  81. set-variable    = key_buffer=256M
  82. set-variable    = sort_buffer=256M
  83. set-variable    = read_buffer=2M
  84. set-variable    = write_buffer=2M
  85.  
  86. [mysqlhotcopy]
  87. interactive-timeout
  88.