Advertisement
Guest User

Untitled

a guest
Jan 21st, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. # /etc/mysql/my.cnf: The global mysql configuration file.
  2. # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-5.1,v 1.3 2012/02/15 02:07:21 jmbsvicetto Exp $
  3.  
  4. # The following options will be passed to all MySQL clients
  5. [client]
  6. #password = your_password
  7. port = 3306
  8. socket = /var/run/mysqld/mysqld.sock
  9.  
  10. [mysql]
  11. character-sets-dir=/usr/share/mysql/charsets
  12. default-character-set=utf8
  13.  
  14. [mysqladmin]
  15. character-sets-dir=/usr/share/mysql/charsets
  16. default-character-set=utf8
  17.  
  18. [mysqlcheck]
  19. character-sets-dir=/usr/share/mysql/charsets
  20. default-character-set=utf8
  21.  
  22. [mysqldump]
  23. character-sets-dir=/usr/share/mysql/charsets
  24. default-character-set=utf8
  25.  
  26. [mysqlimport]
  27. character-sets-dir=/usr/share/mysql/charsets
  28. default-character-set=utf8
  29.  
  30. [mysqlshow]
  31. character-sets-dir=/usr/share/mysql/charsets
  32. default-character-set=utf8
  33.  
  34. [myisamchk]
  35. character-sets-dir=/usr/share/mysql/charsets
  36.  
  37. [myisampack]
  38. character-sets-dir=/usr/share/mysql/charsets
  39.  
  40. # use [safe_mysqld] with mysql-3
  41. [mysqld_safe]
  42. err-log = /var/log/mysql/mysql.err
  43.  
  44. # add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations
  45. [mysqld]
  46. character-set-server = utf8
  47. user = mysql
  48. port = 3306
  49. socket = /var/run/mysqld/mysqld.sock
  50. pid-file = /var/run/mysqld/mysqld.pid
  51. log-error = /var/log/mysql/mysqld.err
  52. basedir = /usr
  53. datadir = /var/lib/mysql
  54. skip-external-locking
  55. key_buffer = 16M
  56. max_allowed_packet = 1M
  57. table_open_cache = 64
  58. sort_buffer_size = 512K
  59. net_buffer_length = 8K
  60. read_buffer_size = 256K
  61. read_rnd_buffer_size = 512K
  62. myisam_sort_buffer_size = 8M
  63. lc-messages-dir = /usr/share/mysql/
  64.  
  65. # security:
  66. # using "localhost" in connects uses sockets by default
  67. # skip-networking
  68. bind-address = 127.0.0.1
  69.  
  70. #log-bin
  71. server-id = 1
  72.  
  73. # point the following paths to different dedicated disks
  74. tmpdir = /tmp/
  75. #log-update = /path-to-dedicated-directory/hostname
  76.  
  77. # you need the debug USE flag enabled to use the following directives,
  78. # if needed, uncomment them, start the server and issue
  79. # #tail -f /tmp/mysqld.sql /tmp/mysqld.trace
  80. # this will show you *exactly* what's happening in your server ;)
  81.  
  82. #log = /tmp/mysqld.sql
  83. #gdb
  84. #debug = d:t:i:o,/tmp/mysqld.trace
  85. #one-thread
  86.  
  87. # uncomment the following directives if you are using BDB tables
  88. #bdb_cache_size = 4M
  89. #bdb_max_lock = 10000
  90.  
  91. # the following is the InnoDB configuration
  92. # if you wish to disable innodb instead
  93. # uncomment just the next line
  94. #skip-innodb
  95. #
  96. # the rest of the innodb config follows:
  97. # don't eat too much memory, we're trying to be safe on 64Mb boxes
  98. # you might want to bump this up a bit on boxes with more RAM
  99. innodb_buffer_pool_size = 16M
  100. # this is the default, increase it if you have lots of tables
  101. innodb_additional_mem_pool_size = 2M
  102. #
  103. # i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
  104. # and upstream wants things to be under /var/lib/mysql/, so that's the route
  105. # we have to take for the moment
  106. #innodb_data_home_dir = /var/lib/mysql/
  107. #innodb_log_arch_dir = /var/lib/mysql/
  108. #innodb_log_group_home_dir = /var/lib/mysql/
  109. # you may wish to change this size to be more suitable for your system
  110. # the max is there to avoid run-away growth on your machine
  111. innodb_data_file_path = ibdata1:10M:autoextend:max:128M
  112. # we keep this at around 25% of of innodb_buffer_pool_size
  113. # sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
  114. innodb_log_file_size = 5M
  115. # this is the default, increase it if you have very large transactions going on
  116. innodb_log_buffer_size = 8M
  117. # this is the default and won't hurt you
  118. # you shouldn't need to tweak it
  119. innodb_log_files_in_group=2
  120. # see the innodb config docs, the other options are not always safe
  121. innodb_flush_log_at_trx_commit = 1
  122. innodb_lock_wait_timeout = 50
  123. innodb_file_per_table
  124.  
  125. [mysqldump]
  126. quick
  127. max_allowed_packet = 16M
  128.  
  129. [mysql]
  130. # uncomment the next directive if you are not familiar with SQL
  131. #safe-updates
  132.  
  133. [isamchk]
  134. key_buffer = 20M
  135. sort_buffer_size = 20M
  136. read_buffer = 2M
  137. write_buffer = 2M
  138.  
  139. [myisamchk]
  140. key_buffer = 20M
  141. sort_buffer_size = 20M
  142. read_buffer = 2M
  143. write_buffer = 2M
  144.  
  145. [mysqlhotcopy]
  146. interactive-timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement