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-small.cnf < prev    next >
Text File  |  2002-02-21  |  2KB  |  79 lines

  1. # Example mysql config file for small systems.
  2. #
  3. # This is for a system with little memory (<= 64M) where MySQL is only used
  4. # from time to time and it's important that the mysqld deamon
  5. # doesn't use much resources.
  6. #
  7. # You can copy this file to
  8. # /etc/my.cnf to set global options,
  9. # mysql-data-dir/my.cnf to set server-specific options (in this
  10. # installation this directory is /usr/local/mysql/var) 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.  
  17. # The following options will be passed to all MySQL clients
  18. [client]
  19. #password    = your_password
  20. port        = 3306
  21. socket        = /tmp/mysql.sock
  22.  
  23. # Here follows entries for some specific programs
  24.  
  25. # The MySQL server
  26. [mysqld]
  27. port        = 3306
  28. socket        = /tmp/mysql.sock
  29. skip-locking
  30. set-variable    = key_buffer=16K
  31. set-variable    = max_allowed_packet=1M
  32. set-variable    = thread_stack=64K
  33. set-variable    = table_cache=4
  34. set-variable    = sort_buffer=64K
  35. set-variable    = net_buffer_length=2K
  36. server-id    = 1
  37.  
  38. # Uncomment the following if you want to log updates
  39. #log-bin
  40.  
  41. # Uncomment the following if you are NOT using BDB tables
  42. #skip-bdb
  43.  
  44. # Uncomment the following if you are using Innobase tables
  45. #innodb_data_file_path = ibdata1:100M
  46. #innodb_data_home_dir = /usr/local/mysql/var/
  47. #innodb_log_group_home_dir = /usr/local/mysql/var/
  48. #innodb_log_arch_dir = /usr/local/mysql/var/
  49. #set-variable = innodb_mirrored_log_groups=1
  50. #set-variable = innodb_log_files_in_group=3
  51. #set-variable = innodb_log_file_size=5M
  52. #set-variable = innodb_log_buffer_size=8M
  53. #innodb_flush_log_at_trx_commit=1
  54. #innodb_log_archive=0
  55. #set-variable = innodb_buffer_pool_size=16M
  56. #set-variable = innodb_additional_mem_pool_size=2M
  57. #set-variable = innodb_file_io_threads=4
  58. #set-variable = innodb_lock_wait_timeout=50
  59.  
  60. [mysqldump]
  61. quick
  62. set-variable    = max_allowed_packet=16M
  63.  
  64. [mysql]
  65. no-auto-rehash
  66. # Remove the next comment character if you are not familiar with SQL
  67. #safe-updates
  68.  
  69. [isamchk]
  70. set-variable    = key_buffer=8M
  71. set-variable    = sort_buffer=8M
  72.  
  73. [myisamchk]
  74. set-variable    = key_buffer=8M
  75. set-variable    = sort_buffer=8M
  76.  
  77. [mysqlhotcopy]
  78. interactive-timeout
  79.