Guest User

Untitled

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