Advertisement
Guest User

Untitled

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