Guest User

Untitled

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