Advertisement
Guest User

Untitled

a guest
Sep 26th, 2012
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1.  
  2. [mysqld]
  3.  
  4. # __________________
  5. #< General Settings >
  6. # ------------------
  7. # \ ^__^
  8. # \ (oo)\_______
  9. # (__)\ )\/\
  10. # ||----w |
  11. # || ||
  12.  
  13. # Misc Settings
  14. # -------------
  15. datadir=/var/lib/mysql
  16. #tmpdir=/var/lib/mysqltmp
  17. socket=/var/lib/mysql/mysql.sock
  18. skip-locking
  19. table_cache=2048
  20. thread_cache_size=16
  21. back_log=100
  22. max_connect_errors=10000
  23. open-files-limit=20000
  24. interactive_timeout=600
  25. wait_timeout=600
  26. #max_connections=200
  27.  
  28. # Set this to change the way MySQL handles validation, data
  29. # conversion, etc. Be careful with this setting as it can
  30. # cause unexpected results and horribly break some applications!
  31. # Note, too, that it can be set per-session and can be hard set
  32. # in stored procedures.
  33. #sql_mode=TRADITIONAL
  34.  
  35. # Slow Query Log Settings
  36. # -----------------------
  37. #log-slow-queries=/var/lib/mysqllogs/slow-log
  38. #long_query_time=2
  39. #log-queries-not-using-indexes
  40.  
  41. # Global, Non Engine-Specific Buffers
  42. # -----------------------------------
  43. max_allowed_packet=16M
  44. tmp_table_size=64M
  45. max_heap_table_size=64M
  46.  
  47. # Generally, it is unwise to set the query cache to be
  48. # larger than 64-128M as this can decrease performance
  49. # since the penalty for flushing the cache can become
  50. # significant.
  51. query_cache_size=32M
  52.  
  53. # Per-Thread Buffers
  54. # ------------------
  55. sort_buffer_size=1M
  56. read_buffer_size=1M
  57. read_rnd_buffer_size=8M
  58. join_buffer_size=1M
  59.  
  60. # __________________________
  61. #< Engine Specific Settings >
  62. # --------------------------
  63. # \ ^__^
  64. # \ (oo)\_______
  65. # (__)\ )\/\
  66. # ||----w |
  67. # || ||
  68.  
  69. # Set this to force MySQL to use a particular engine / table-type
  70. # for new tables. This setting can still be overridden by specifying
  71. # the engine explicitly in the CREATE TABLE statement.
  72. #default-storage-engine=InnoDB
  73.  
  74. # MyISAM
  75. # ------
  76.  
  77. # Not sure what to set this to?
  78. # Try running a 'du -sch /var/lib/mysql/*/*.MYI'
  79. # This will give you a good estiamte on the size of all the MyISAM indexes.
  80. # (The buffer may not need to set that high, however)
  81. key_buffer_size=64M
  82.  
  83. # This setting controls the size of the buffer that is allocated when
  84. # sorting MyISAM indexes during a REPAIR TABLE or when creating indexes
  85. # with CREATE INDEX or ALTER TABLE.
  86. myisam_sort_buffer_size=64M
  87.  
  88. # InnoDB
  89. # ------
  90. # Note: While most settings in MySQL can be set at run-time, InnoDB
  91. # variables require restarting MySQL to apply.
  92.  
  93. # If the customer already has InnoDB tables and wants to change the
  94. # size of the InnoDB tablespace and InnoDB logs, then:
  95. # 1. Run a full backup with mysqldump
  96. # 2. Stop MySQL
  97. # 3. Move current ibdata and ib_logfiles out of /var/lib/mysql
  98. # 4. Uncomment the below innodb_data_file_path and innodb_log_file_size
  99. # 5. Start MySQL (it will recreate new InnoDB files)
  100. # 6. Restore data from backup
  101. #innodb_data_file_path=ibdata1:2000M;ibdata2:10M:autoextend
  102. innodb_log_file_size=100M
  103.  
  104. # InnoDB loves RAM. For customers using mostly InnoDB, consider setting
  105. # this variable somewhat liberally. Do make sure the server is 64-bit,
  106. # however, if you plan on setting it above 1.5-2GB.
  107. innodb_buffer_pool_size=16M
  108.  
  109. #innodb_additional_mem_pool_size=20M
  110.  
  111. # innodb_file_per_table can be useful in certain cases
  112. # but be aware that it does not scale well with a
  113. # large number of tables!
  114. #innodb_file_per_table=1
  115.  
  116. # Somewhat equivalent to table_cache for InnoDB
  117. # when using innodb_file_per_table.
  118. #innodb_open_files=1024
  119.  
  120. # If you are not sure what to set this two, the
  121. # following formula can offer up a rough idea:
  122. # (number of cpus * number of disks * 2)
  123. #innodb_thread_concurrency=16
  124.  
  125. # _____________________________
  126. #< Replication/Backup Settings >
  127. # -----------------------------
  128. # \ ^__^
  129. # \ (oo)\_______
  130. # (__)\ )\/\
  131. # ||----w |
  132. # || ||
  133.  
  134. server-id=308557 #Generated from Rackspace server number
  135.  
  136. # It may be wise to include the server-name or an easy identifier
  137. # to the server in these logs, such as 'log-bin=/var/lib/mysqllogs/db1-bin-log'
  138. #log-bin=/var/lib/mysqllogs/bin-log
  139. #log-bin-index=/var/lib/mysqllogs/bin-log.index
  140. #relay-log=/var/lib/mysqllogs/relay-log
  141. #relay-log-index=/var/lib/mysqllogs/relay-log.index
  142.  
  143. # MySQL 5.0+ Only
  144. #expire_logs_days=14
  145.  
  146. # This is usually only needed when setting up chained replication.
  147. #log-slave-updates
  148.  
  149. # Enable this to make replication more resilient against server
  150. # crashes and restarts, but can cause higher I/O on the server.
  151. #sync_binlog=1
  152.  
  153. # MySQL 5.0+ Only
  154. # Uncomment the following when enabling multi-master replication
  155. # Do NOT uncomment these unless you know exactly what you are doing!
  156. #auto_increment_increment=2
  157. #auto_increment_offset=1
  158.  
  159. # _________________
  160. #< Script Settings >
  161. # -----------------
  162. # \ ^__^
  163. # \ (oo)\_______
  164. # (__)\ )\/\
  165. # ||----w |
  166. # || ||
  167. # (You probably do not need to change these)
  168.  
  169. [mysql.server]
  170. user=mysql
  171. #basedir=/var/lib
  172.  
  173. [mysqld_safe]
  174. log-error=/var/log/mysqld.log
  175. pid-file=/var/run/mysqld/mysqld.pid
  176. open-files-limit=65535
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement