Advertisement
Guest User

Untitled

a guest
Jun 25th, 2011
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. #
  2. # MariaDB database server configuration file.
  3. #
  4. # =================================================================
  5. # Base configuration courtesy of Open Query (http://openquery.com/)
  6. # For production use, case-specific preparation is still required.
  7. # 2009-10-07
  8. #
  9. # This is *not* an optimised config, merely a more sane baseline:
  10. # - InnoDB default (e.g., ACID out-of-the-box, same as on Windows)
  11. # - strict mode (for proper input checks, same as on Windows)
  12. # - various other useful settings
  13. # - make use of MariaDB/Percona/OurDelta enhancements/extensions
  14. #
  15. # For tuning assistance, please see http://openquery.com/services
  16. # =================================================================
  17. #
  18. # You can copy this file to one of:
  19. # - "/etc/mysql/my.cnf" to set global options,
  20. # - "~/.my.cnf" to set user-specific options.
  21. #
  22. # One can use all long options that the program supports.
  23. # Run program with --help to get a list of available options and with
  24. # --print-defaults to see which it would actually understand and use.
  25. #
  26. # For explanations see
  27. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  28.  
  29. # This will be passed to all mysql clients
  30. # It has been reported that passwords should be enclosed with ticks/quotes
  31. # escpecially if they contain "#" chars...
  32. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
  33. [client]
  34. port = 3306
  35. socket = /var/run/mysqld/mysqld.sock
  36. # Default is Latin1, if you need UTF-8 set this (also in server section)
  37. default-character-set = utf8
  38.  
  39. # Here is entries for some specific programs
  40. # The following values assume you have at least 32M ram
  41.  
  42. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
  43. [mysqld_safe]
  44. socket = /var/run/mysqld/mysqld.sock
  45. nice = 0
  46.  
  47. [mysqld]
  48. #
  49. # * Basic Settings
  50. #
  51. user = mysql
  52. pid-file = /var/run/mysqld/mysqld.pid
  53. socket = /var/run/mysqld/mysqld.sock
  54. port = 3306
  55. basedir = /usr
  56. datadir = /var/lib/mysql
  57. tmpdir = /tmp
  58. language = /usr/share/mysql/english
  59. skip-external-locking
  60. #
  61. # * Character sets
  62. #
  63. # Default is Latin1, if you need UTF-8 set all this (also in client section)
  64. #
  65. #default-character-set = utf8
  66. #default-collation = utf8_general_ci
  67. character_set_server = utf8
  68. collation_server = utf8_general_ci
  69. #
  70. # Instead of skip-networking the default is now to listen only on
  71. # localhost which is more compatible and is not less secure.
  72. bind-address = 127.0.0.1
  73. #
  74. # * Fine Tuning
  75. #
  76. key_buffer_size = 32M
  77. max_allowed_packet = 4M
  78. thread_stack = 192K
  79. thread_cache_size = 8
  80.  
  81. connect_timeout = 5
  82. wait_timeout = 30
  83. interactive_timeout = 120
  84.  
  85. sort_buffer_size = 1M
  86. bulk_insert_buffer_size = 512K
  87. tmp_table_size = 512K
  88. max_heap_table_size = 2M
  89.  
  90. myisam_recover = BACKUP
  91. max_connections = 75
  92. table_open_cache = 128
  93. thread_concurrency = 6
  94.  
  95. myisam_sort_buffer_size = 1M
  96. concurrent_insert = 2
  97. read_buffer_size = 256K
  98. read_rnd_buffer_size = 256K
  99. #
  100. # * Query Cache Configuration
  101. #
  102. # Cache only tiny result sets, so we can fit more in the query cache.
  103. query_cache_limit = 256K
  104. query_cache_size = 8M
  105. # for more write intensive setups, set to DEMAND or OFF
  106. #query_cache_type = DEMAND
  107. #
  108. # * Logging and Replication
  109. #
  110. # Both location gets rotated by the cronjob.
  111. # Be aware that this log type is a performance killer.
  112. # As of 5.1 you can enable the log at runtime!
  113. #general_log_file = /var/log/mysql/mysql.log
  114. #general_log = 1
  115. #
  116. # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
  117. #
  118. # we do want to know about network errors and such
  119. log_warnings = 2
  120.  
  121. #log-queries-not-using-indexes
  122. #log_slow_admin_statements
  123. #
  124. # The following can be used as easy to replay backup logs or for replication.
  125. # note: if you are setting up a replication slave, see README.Debian about
  126. # other settings you may need to change.
  127. #server-id = 1
  128. #report_host = master1
  129. #auto_increment_increment = 2
  130. #auto_increment_offset = 1
  131. #log_bin = /var/log/mysql/mariadb-bin
  132. #log_bin_index = /var/log/mysql/mariadb-bin.index
  133. # not fab for performance, but safer
  134. #sync_binlog = 1
  135. expire_logs_days = 10
  136. max_binlog_size = 100M
  137. # slaves
  138. #relay_log = /var/log/mysql/relay-bin
  139. #relay_log_index = /var/log/mysql/relay-bin.index
  140. #relay_log_info_file = /var/log/mysql/relay-bin.info
  141. #log_slave_updates
  142. #read_only
  143. #
  144. # If applications support it, this stricter sql_mode prevents some
  145. # mistakes like inserting invalid dates etc.
  146. #sql_mode = NO_ENGINE_SUBSTITUTION,TRADITIONAL
  147. #
  148. # * InnoDB
  149. #
  150. ## InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  151. ## Read the manual for more InnoDB related options. There are many!
  152. #default_storage_engine = InnoDB
  153. ## you can't just change log file size, requires special procedure
  154. ##innodb_log_file_size = 50M
  155. #innodb_buffer_pool_size = 256M
  156. #innodb_log_buffer_size = 8M
  157. #innodb_file_per_table = 1
  158. #innodb_open_files = 400
  159. #innodb_io_capacity = 400
  160. #innodb_flush_method = O_DIRECT
  161.  
  162. skip-innodb
  163. skip-federated
  164. skip-archive
  165. skip-blackhole
  166. skip-csv
  167. skip-mrg_myisam
  168.  
  169. #
  170. # * Security Features
  171. #
  172. # Read the manual, too, if you want chroot!
  173. # chroot = /var/lib/mysql/
  174. #
  175. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  176. #
  177. # ssl-ca=/etc/mysql/cacert.pem
  178. # ssl-cert=/etc/mysql/server-cert.pem
  179. # ssl-key=/etc/mysql/server-key.pem
  180.  
  181.  
  182. [mariadb]
  183. skip-pbxt
  184. skip-pbxt_statistics
  185. skip-innodb_rseg
  186. skip-innodb_buffer_pool_pages
  187. skip-innodb_buffer_pool_pages_index
  188. skip-innodb_buffer_pool_pages_blob
  189. skip-innodb_trx
  190. skip-innodb_locks
  191. skip-innodb_lock_waits
  192. skip-innodb_cmp
  193. skip-innodb_cmp_reset
  194. skip-innodb_cmpmem
  195. skip-innodb_cmpmem_reset
  196. skip-innodb_table_stats
  197. skip-innodb_index_stats
  198. skip-innodb_sys_tables
  199. skip-innodb_sys_indexes
  200. skip-innodb_sys_stats
  201. skip-xtradb_admin_command
  202. skip-xtradb_enhancements
  203.  
  204.  
  205.  
  206.  
  207. [mysqldump]
  208. quick
  209. quote-names
  210. max_allowed_packet = 16M
  211.  
  212. [mysql]
  213. #no-auto-rehash # faster start of mysql but no tab completition
  214.  
  215. [isamchk]
  216. key_buffer = 16M
  217.  
  218. #
  219. # * IMPORTANT: Additional settings that can override those from this file!
  220. # The files must end with '.cnf', otherwise they'll be ignored.
  221. #
  222. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement