Advertisement
Guest User

Untitled

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