Guest User

Untitled

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