my-large.cnf.sh
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:3k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. # Example mysql config file for large systems.
  2. #
  3. # This is for large system with memory = 512M where the system runs mainly
  4. # MySQL.
  5. #
  6. # You can copy this file to
  7. # /etc/mf.cnf to set global options,
  8. # mysql-data-dir/my.cnf to set server-specific options (in this
  9. # installation this directory is @localstatedir@) 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. # The following options will be passed to all MySQL clients
  16. [client]
  17. #password = your_password
  18. port = @MYSQL_TCP_PORT@
  19. socket = @MYSQL_UNIX_ADDR@
  20. # Here follows entries for some specific programs
  21. # The MySQL server
  22. [mysqld]
  23. port = @MYSQL_TCP_PORT@
  24. socket = @MYSQL_UNIX_ADDR@
  25. skip-locking
  26. set-variable = key_buffer=256M
  27. set-variable = max_allowed_packet=1M
  28. set-variable = table_cache=256
  29. set-variable = sort_buffer=1M
  30. set-variable = record_buffer=1M
  31. set-variable = myisam_sort_buffer_size=64M
  32. set-variable = thread_cache=8
  33. # Try number of CPU's*2 for thread_concurrency
  34. set-variable = thread_concurrency=8
  35. log-bin
  36. server-id = 1
  37. # Uncomment the following if you are using BDB tables
  38. #set-variable = bdb_cache_size=64M
  39. #set-variable = bdb_max_lock=100000
  40. # Uncomment the following if you are using Innobase tables
  41. #innobase_data_home_dir = @datadir@
  42. #innobase_log_group_home_dir = @datadir@
  43. #innobase_log_arch_dir = @datadir@
  44. #innobase_data_file_path = ibdata1:25M;ibdata2:37M;ibdata3:100M;ibdata4:300M
  45. #set-variable = innobase_mirrored_log_groups=1
  46. #set-variable = innobase_log_files_in_group=3
  47. #set-variable = innobase_log_file_size=5M
  48. #set-variable = innobase_log_buffer_size=8M
  49. #innobase_flush_log_at_trx_commit=1
  50. #innobase_log_archive=0
  51. #set-variable = innobase_buffer_pool_size=16M
  52. #set-variable = innobase_additional_mem_pool_size=2M
  53. #set-variable = innobase_file_io_threads=4
  54. #set-variable = innobase_lock_wait_timeout=50
  55. # Point the following paths to different dedicated disks
  56. #tmpdir = /tmp/
  57. #log-update  = /path-to-dedicated-directory/hostname
  58. [mysqldump]
  59. quick
  60. set-variable = max_allowed_packet=16M
  61. [mysql]
  62. no-auto-rehash
  63. # Remove the next comment character if you are not familiar with SQL
  64. #safe-updates
  65. [isamchk]
  66. set-variable = key_buffer=128M
  67. set-variable = sort_buffer=128M
  68. set-variable = read_buffer=2M
  69. set-variable = write_buffer=2M
  70. [myisamchk]
  71. set-variable = key_buffer=128M
  72. set-variable = sort_buffer=128M
  73. set-variable = read_buffer=2M
  74. set-variable = write_buffer=2M
  75. [mysqlhotcopy]
  76. interactive-timeout