Guest User

Untitled

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