my-medium.cnf.sh
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 2k
Category:

MySQL

Development Platform:

Visual C++

  1. # Example mysql config file for medium systems.
  2. #
  3. # This is for a system with little memory (32M - 64M) where MySQL plays
  4. # a important part and systems up to 128M very MySQL is used together with
  5. # other programs (like a web server)
  6. #
  7. # You can copy this file to
  8. # /etc/mf.cnf to set global options,
  9. # mysql-data-dir/my.cnf to set server-specific options (in this
  10. # installation this directory is @localstatedir@) or
  11. # ~/.my.cnf to set user-specific options.
  12. #
  13. # One can in this file use all long options that the program supports.
  14. # If you want to know which options a program support, run the program
  15. # with --help option.
  16. # The following options will be passed to all MySQL clients
  17. [client]
  18. #password = your_password
  19. port = @MYSQL_TCP_PORT@
  20. socket = @MYSQL_UNIX_ADDR@
  21. # Here follows entries for some specific programs
  22. # The MySQL server
  23. [mysqld]
  24. port = @MYSQL_TCP_PORT@
  25. socket = @MYSQL_UNIX_ADDR@
  26. skip-locking
  27. set-variable = key_buffer=16M
  28. set-variable = max_allowed_packet=1M
  29. set-variable = table_cache=64
  30. set-variable = sort_buffer=512K
  31. set-variable = net_buffer_length=8K
  32. set-variable = myisam_sort_buffer_size=8M
  33. log-bin
  34. server-id = 1
  35. # Point the following paths to different dedicated disks
  36. #tmpdir = /tmp/
  37. #log-update  = /path-to-dedicated-directory/hostname
  38. # Uncomment the following if you are using BDB tables
  39. #set-variable = bdb_cache_size=4M
  40. #set-variable = bdb_max_lock=10000
  41. # Uncomment the following if you are using Innobase tables
  42. #innobase_data_home_dir = @datadir@
  43. #innobase_log_group_home_dir = @datadir@
  44. #innobase_log_arch_dir = @datadir@
  45. #innobase_data_file_path = ibdata1:25M;ibdata2:37M;ibdata3:100M;ibdata4:300M
  46. #set-variable = innobase_mirrored_log_groups=1
  47. #set-variable = innobase_log_files_in_group=3
  48. #set-variable = innobase_log_file_size=5M
  49. #set-variable = innobase_log_buffer_size=8M
  50. #innobase_flush_log_at_trx_commit=1
  51. #innobase_log_archive=0
  52. #set-variable = innobase_buffer_pool_size=16M
  53. #set-variable = innobase_additional_mem_pool_size=2M
  54. #set-variable = innobase_file_io_threads=4
  55. #set-variable = innobase_lock_wait_timeout=50
  56. [mysqldump]
  57. quick
  58. set-variable = max_allowed_packet=16M
  59. [mysql]
  60. no-auto-rehash
  61. # Remove the next comment character if you are not familiar with SQL
  62. #safe-updates
  63. [isamchk]
  64. set-variable = key_buffer=20M
  65. set-variable = sort_buffer=20M
  66. set-variable = read_buffer=2M
  67. set-variable = write_buffer=2M
  68. [myisamchk]
  69. set-variable = key_buffer=20M
  70. set-variable = sort_buffer=20M
  71. set-variable = read_buffer=2M
  72. set-variable = write_buffer=2M
  73. [mysqlhotcopy]
  74. interactive-timeout