Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. # Example MySQL config file for very large systems.
  2. #
  3. # This is for a large system with memory of 1G-2G where the system runs mainly
  4. # MySQL.
  5. #
  6. # You can copy this file to
  7. # /etc/my.cnf to set global options,
  8. # mysql-data-dir/my.cnf to set server-specific options (in this
  9. # installation this directory is /var/db/mysql) or
  10. # ~/.my.cnf to set user-specific options.
  11. #
  12. # In this file, you can use all long options that a program supports.
  13. # If you want to know which options a program supports, run the program
  14. # with the "--help" option.
  15.  
  16. # The following options will be passed to all MySQL clients
  17. [client]
  18. #password = your_password
  19. port = 3306
  20. socket = /tmp/mysql.sock
  21.  
  22. # Here follows entries for some specific programs
  23.  
  24. # The MySQL server
  25. [mysqld]
  26. port = 3306
  27. socket = /tmp/mysql.sock
  28. skip-locking
  29. max_connections = 7000
  30. key_buffer = 384M
  31. max_allowed_packet = 200M
  32. table_cache = 100000
  33. sort_buffer_size = 100M
  34. read_buffer_size = 100M
  35. read_rnd_buffer_size = 100M
  36. myisam_sort_buffer_size = 100M
  37. thread_cache_size = 8
  38. query_cache_size = 100M
  39. # Try number of CPU's*2 for thread_concurrency
  40. thread_concurrency = 8
  41.  
  42. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  43. # if all processes that need to connect to mysqld run on the same host.
  44. # All interaction with mysqld must be made via Unix sockets or named pipes.
  45. # Note that using this option without enabling named pipes on Windows
  46. # (via the "enable-named-pipe" option) will render mysqld useless!
  47. #
  48. #skip-networking
  49.  
  50. # Disable Federated by default
  51. skip-federated
  52.  
  53. # Replication Master Server (default)
  54. # binary logging is required for replication
  55. log-bin=mysql-bin
  56.  
  57. # required unique id between 1 and 2^32 - 1
  58. # defaults to 1 if master-host is not set
  59. # but will not function as a master if omitted
  60. server-id = 1
  61.  
  62. # Replication Slave (comment out master section to use this)
  63. #
  64. # To configure this host as a replication slave, you can choose between
  65. # two methods :
  66. #
  67. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  68. # the syntax is:
  69. #
  70. # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  71. # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  72. #
  73. # where you replace <host>, <user>, <password> by quoted strings and
  74. # <port> by the master's port number (3306 by default).
  75. #
  76. # Example:
  77. #
  78. # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  79. # MASTER_USER='joe', MASTER_PASSWORD='secret';
  80. #
  81. # OR
  82. #
  83. # 2) Set the variables below. However, in case you choose this method, then
  84. # start replication for the first time (even unsuccessfully, for example
  85. # if you mistyped the password in master-password and the slave fails to
  86. # connect), the slave will create a master.info file, and any later
  87. # change in this file to the variables' values below will be ignored and
  88. # overridden by the content of the master.info file, unless you shutdown
  89. # the slave server, delete master.info and restart the slaver server.
  90. # For that reason, you may want to leave the lines below untouched
  91. # (commented) and instead use CHANGE MASTER TO (see above)
  92. #
  93. # required unique id between 2 and 2^32 - 1
  94. # (and different from the master)
  95. # defaults to 2 if master-host is set
  96. # but will not function as a slave if omitted
  97. #server-id = 2
  98. #
  99. # The replication master for this slave - required
  100. #master-host = <hostname>
  101. #
  102. # The username the slave will use for authentication when connecting
  103. # to the master - required
  104. #master-user = <username>
  105. #
  106. # The password the slave will authenticate with when connecting to
  107. # the master - required
  108. #master-password = <password>
  109. #
  110. # The port the master is listening on.
  111. # optional - defaults to 3306
  112. #master-port = <port>
  113. #
  114. # binary logging - not required for slaves, but recommended
  115. #log-bin=mysql-bin
  116.  
  117. # Point the following paths to different dedicated disks
  118. #tmpdir = /tmp/
  119. #log-update = /path-to-dedicated-directory/hostname
  120.  
  121. # Uncomment the following if you are using BDB tables
  122. #bdb_cache_size = 384M
  123. #bdb_max_lock = 100000
  124.  
  125. # Uncomment the following if you are using InnoDB tables
  126. #innodb_data_home_dir = /var/db/mysql/
  127. #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
  128. #innodb_log_group_home_dir = /var/db/mysql/
  129. #innodb_log_arch_dir = /var/db/mysql/
  130. # You can set .._buffer_pool_size up to 50 - 80 %
  131. # of RAM but beware of setting memory usage too high
  132. #innodb_buffer_pool_size = 384M
  133. #innodb_additional_mem_pool_size = 20M
  134. # Set .._log_file_size to 25 % of buffer pool size
  135. #innodb_log_file_size = 100M
  136. #innodb_log_buffer_size = 8M
  137. #innodb_flush_log_at_trx_commit = 1
  138. #innodb_lock_wait_timeout = 50
  139.  
  140. [mysqldump]
  141. quick
  142. max_allowed_packet = 16M
  143.  
  144. [mysql]
  145. no-auto-rehash
  146. # Remove the next comment character if you are not familiar with SQL
  147. #safe-updates
  148.  
  149. [isamchk]
  150. key_buffer = 256M
  151. sort_buffer_size = 256M
  152. read_buffer = 2M
  153. write_buffer = 2M
  154.  
  155. [myisamchk]
  156. key_buffer = 256M
  157. sort_buffer_size = 256M
  158. read_buffer = 2M
  159. write_buffer = 2M
  160.  
  161. [mysqlhotcopy]
  162. interactive-timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement