tkiran

my.cnf

Apr 16th, 2019
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 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. # MySQL programs look for option files in a set of
  7. # locations which depend on the deployment platform.
  8. # You can copy this option file to one of those
  9. # locations. For information about these locations, see:
  10. # http://dev.mysql.com/doc/mysql/en/option-files.html
  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 = 3317
  20. socket = /var/lib/mysql/mysql.sock
  21. ssl-cert=/etc/mysql-ssl/sbi-cert.pem
  22. ssl-key=/etc/mysql-ssl/sbi-key.pem
  23.  
  24.  
  25. # Here follows entries for some specific programs
  26.  
  27. # The MySQL server
  28. [mysqld]
  29. open_files_limit = 1024000
  30. user = mysql
  31. port = 3317
  32. #socket = /var/lib/mysql/mysql.sock
  33. skip-symbolic-links
  34. skip-grant-tables = FALSE
  35. #skip_networking = ON
  36. slave-skip-errors = 1062,1054,1032
  37. local-infile = 1
  38. tmpdir=/home/mysqltmp
  39. ###Srinivas
  40. sync-binlog=0
  41. binlog_format=mixed
  42.  
  43. secure_file_priv=/var/lib/mysql-files
  44. ssl-ca=/etc/mysql-ssl/ca.pem
  45. ssl-cert=/etc/mysql-ssl/sbimsms170.sbi.co.in-cert.pem
  46. ssl-key=/etc/mysql-ssl/sbimsms170.sbi.co.in-key.pem
  47. #tls_version=TLSv1.2
  48. skip-name-resolve
  49. skip-external-locking
  50. key_buffer_size = 1024M
  51. max_allowed_packet = 16M
  52. table_open_cache = 2048M
  53. sort_buffer_size = 4M
  54. read_buffer_size = 2M
  55. read_rnd_buffer_size = 8M
  56. myisam_sort_buffer_size = 64M
  57. thread_cache_size = 100M
  58. query_cache_size = 0M
  59. slow_query_log = ON
  60. # Try number of CPU's*2 for thread_concurrency
  61. #thread_concurrency = 8
  62. max_connections = 1200
  63. query_cache_size=0
  64. innodb_file_per_table = 1
  65. wait_timeout = 300
  66. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  67. # if all processes that need to connect to mysqld run on the same host.
  68. # All interaction with mysqld must be made via Unix sockets or named pipes.
  69. # Note that using this option without enabling named pipes on Windows
  70. # (via the "enable-named-pipe" option) will render mysqld useless!
  71. #
  72. #skip-networking
  73.  
  74. # Replication Master Server (default)
  75. # binary logging is required for replication
  76. log-bin=mysql-bin
  77.  
  78. # required unique id between 1 and 2^32 - 1
  79. # defaults to 1 if master-host is not set
  80. # but will not function as a master if omitted
  81. server-id = 1
  82.  
  83. binlog-do-db = SBISMSSOL_dbo
  84. binlog-do-db = SBISMSMIS_dbo
  85. #binlog-do-db = MIS
  86. #binlog-do-db = SOL
  87. log_slave_updates = 1
  88. auto-increment-increment = 2
  89. auto-increment-offset = 1
  90.  
  91.  
  92. #replicate-ignore-table=SOL.Outbox
  93.  
  94. # Replication Slave (comment out master section to use this)
  95. #
  96. # To configure this host as a replication slave, you can choose between
  97. # two methods :
  98. #
  99. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  100. # the syntax is:
  101. #
  102. # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  103. # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  104. #
  105. # where you replace <host>, <user>, <password> by quoted strings and
  106. # <port> by the master's port number (3306 by default).
  107. #
  108. # Example:
  109. #
  110. # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  111. # MASTER_USER='joe', MASTER_PASSWORD='secret';
  112. #
  113. # OR
  114. #
  115. # 2) Set the variables below. However, in case you choose this method, then
  116. # start replication for the first time (even unsuccessfully, for example
  117. # if you mistyped the password in master-password and the slave fails to
  118. # connect), the slave will create a master.info file, and any later
  119. # change in this file to the variables' values below will be ignored and
  120. # overridden by the content of the master.info file, unless you shutdown
  121. # the slave server, delete master.info and restart the slaver server.
  122. # For that reason, you may want to leave the lines below untouched
  123. # (commented) and instead use CHANGE MASTER TO (see above)
  124. #
  125. # required unique id between 2 and 2^32 - 1
  126. # (and different from the master)
  127. # defaults to 2 if master-host is set
  128. # but will not function as a slave if omitted
  129. #server-id = 2
  130. #
  131. # The replication master for this slave - required
  132. #master-host = <hostname>
  133. #
  134. # The username the slave will use for authentication when connecting
  135. # to the master - required
  136. #master-user = <username>
  137. #
  138. # The password the slave will authenticate with when connecting to
  139. # the master - required
  140. #master-password = <password>
  141. #
  142. # The port the master is listening on.
  143. # optional - defaults to 3306
  144. #master-port = <port>
  145. #
  146. # binary logging - not required for slaves, but recommended
  147. #log-bin=mysql-bin
  148. #
  149. # binary logging format - mixed recommended
  150. #binlog_format=mixed
  151.  
  152. log-error = /var/log/mysqld.log
  153.  
  154. # Uncomment the following if you are using InnoDB tables
  155. innodb_data_home_dir = /var/lib/mysql
  156. #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
  157. innodb_log_group_home_dir = /var/lib/mysql
  158. # You can set .._buffer_pool_size up to 50 - 80 %
  159. # of RAM but beware of setting memory usage too high
  160. innodb_buffer_pool_size = 70G
  161. #innodb_additional_mem_pool_size = 500M
  162. # Set .._log_file_size to 25 % of buffer pool size
  163. innodb_log_file_size = 2G
  164. innodb_log_buffer_size = 8M
  165. innodb_flush_log_at_trx_commit = 2
  166. innodb_lock_wait_timeout = 50
  167. innodb_flush_method=O_DIRECT
  168. #innodb_flush_method=O_DSYNC
  169. wait_timeout = 300
  170. slave_compressed_protocol=1
  171. #innodb_buffer_pool_instances=8
  172. #innodb_io_capacity = 1500
  173. #innodb_io_capacity_max = 2000
  174. #query_cache_type=OFF
  175. ssl-cipher=DHE-RSA-AES256-SHA:AES128-SHA
  176.  
  177. [mysqldump]
  178. quick
  179. max_allowed_packet = 16M
  180.  
  181. [mysql]
  182. no-auto-rehash
  183. # Remove the next comment character if you are not familiar with SQL
  184. #safe-updates
  185.  
  186.  
  187. #[myisamchk]
  188. #key_buffer_size = 256M
  189. #sort_buffer_size = 256M
  190. #read_buffer = 2M
  191. #write_buffer = 2M
  192.  
  193. #[mysqlhotcopy]
  194. #interactive-timeout
Add Comment
Please, Sign In to add comment