Advertisement
Guest User

Untitled

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