Advertisement
Guest User

Untitled

a guest
Dec 27th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. cat /etc/mysql/my.cnf
  2. # /etc/mysql/my.cnf: The global mysql configuration file.
  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_size = 16M
  56. max_allowed_packet = 4M
  57. table_open_cache = 400
  58. sort_buffer_size = 512K
  59. net_buffer_length = 16K
  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. #Set this to your desired error message language
  65. lc_messages = en_US
  66.  
  67. # security:
  68. # using "localhost" in connects uses sockets by default
  69. # skip-networking
  70. bind-address = 127.0.0.1
  71.  
  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 the debug USE flag enabled to use the following directives,
  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 happening 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. # the rest of the innodb config follows:
  90. # don't eat too much memory, we're trying to be safe on 64Mb boxes
  91. # you might want to bump this up a bit on boxes with more RAM
  92. innodb_buffer_pool_size = 128M
  93. #
  94. # i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
  95. # and upstream wants things to be under /var/lib/mysql/, so that's the route
  96. # we have to take for the moment
  97. #innodb_data_home_dir = /var/lib/mysql/
  98. #innodb_log_group_home_dir = /var/lib/mysql/
  99. # you may wish to change this size to be more suitable for your system
  100. # the max is there to avoid run-away growth on your machine
  101. innodb_data_file_path = ibdata1:10M:autoextend:max:128M
  102. # we keep this at around 25% of of innodb_buffer_pool_size
  103. # sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
  104. innodb_log_file_size = 48M
  105. # this is the default, increase it if you have very large transactions going on
  106. innodb_log_buffer_size = 8M
  107. # this is the default and won't hurt you
  108. # you shouldn't need to tweak it
  109. innodb_log_files_in_group=2
  110. # see the innodb config docs, the other options are not always safe
  111. innodb_flush_log_at_trx_commit = 1
  112. innodb_lock_wait_timeout = 50
  113. innodb_file_per_table
  114.  
  115. # Uncomment this to get FEDERATED engine support
  116. #plugin-load=federated=ha_federated.so
  117. loose-federated
  118.  
  119. [mysqldump]
  120. quick
  121. max_allowed_packet = 16M
  122.  
  123. [mysql]
  124. # uncomment the next directive if you are not familiar with SQL
  125. #safe-updates
  126.  
  127. [isamchk]
  128. key_buffer_size = 20M
  129. sort_buffer_size = 20M
  130. read_buffer = 2M
  131. write_buffer = 2M
  132.  
  133. [myisamchk]
  134. key_buffer_size = 20M
  135. sort_buffer_size = 20M
  136. read_buffer_size = 2M
  137. write_buffer_size = 2M
  138.  
  139. [mysqlhotcopy]
  140. interactive-timeout
  141. root@srv-merganser ~ #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement