Advertisement
andrewbogott

Untitled

May 29th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. ###
  2. #### This file managed by puppet.
  3. ###
  4.  
  5. #
  6. # * IMPORTANT
  7. # If you make changes to these settings and your system uses apparmor, you may
  8. # also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
  9. #
  10.  
  11.  
  12. [mysqld]
  13. basedir = /usr
  14. datadir = /mnt
  15. tmpdir = /tmp
  16. socket = /var/run/mysqld/mysqld.sock
  17. pid-file = /var/run/mysqld/mysqld.pid
  18. user = mysql
  19.  
  20.  
  21. ##############
  22. # Networking #
  23. ##############
  24.  
  25. bind_address = 127.0.0.1
  26. port = 3306
  27. skip_name_resolve
  28. max_allowed_packet = 16M
  29. max_connections = 151
  30. wait_timeout = 28800
  31. connect_timeout = 10
  32.  
  33.  
  34. ###########
  35. # Logging #
  36. ###########
  37. log_error = /var/log/mysql/mysql.err
  38.  
  39.  
  40. # Character Set
  41. character_set_server = utf8
  42. collation_server = utf8_general_ci
  43.  
  44. # Allow fulltext searches to find words smaller than 4 characters
  45. ft_min_word_len = 3
  46.  
  47.  
  48. ####################################
  49. # Buffers, Threads, Caches, Limits #
  50. ####################################
  51. tmp_table_size = 16M
  52. max_heap_table_size = 16M
  53. max_tmp_tables = 32
  54.  
  55. join_buffer_size = 3M
  56. read_buffer_size = 4M
  57. sort_buffer_size = 4M
  58.  
  59. table_cache = 64
  60. table_definition_cache = 256
  61. open_files_limit = 1024
  62.  
  63. thread_stack = 192K
  64. thread_cache_size = 8
  65. thread_concurrency = 10
  66.  
  67. query_cache_size = 16M
  68. query_cache_limit = 1M
  69. tmp_table_size = 16M
  70. read_rnd_buffer_size = 256K
  71.  
  72. ###################
  73. # MyISAM Settings #
  74. ###################
  75. key_buffer_size = 16M
  76. myisam_sort_buffer_size = 8M
  77. myisam_max_sort_file_size = 512M
  78.  
  79.  
  80. ###################
  81. # InnoDB Settings #
  82. ###################
  83. innodb_file_per_table = 1
  84. innodb_status_file = 0
  85. innodb_support_xa = 0
  86. innodb_flush_log_at_trx_commit = 0
  87. innodb_buffer_pool_size = 8M
  88. innodb_log_file_size = 5M
  89. innodb_log_group_home_dir = /mnt
  90. innodb_flush_method = O_DIRECT
  91. innodb_thread_concurrency = 8
  92. innodb_concurrency_tickets = 500
  93. innodb_doublewrite = 1
  94.  
  95. # always enable federated storage engine
  96. federated = 1
  97.  
  98.  
  99. read_only = 0
  100.  
  101.  
  102. # This will be passed to all mysql clients
  103. # It has been reported that passwords should be enclosed with ticks/quotes
  104. # escpecially if they contain "#" chars...
  105. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
  106. [client]
  107. port = 3306
  108. socket = /var/run/mysqld/mysqld.sock
  109.  
  110. [mysqldump]
  111. quick
  112. quote-names
  113. max_allowed_packet = 16M
  114.  
  115. [mysql]
  116. #no-auto-rehash # faster start of mysql but no tab completition
  117.  
  118. #
  119. # * IMPORTANT: Additional settings that can override those from this file!
  120. # The files must end with '.cnf', otherwise they'll be ignored.
  121. #
  122. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement