Advertisement
Guest User

Untitled

a guest
Jun 5th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. # IMPORTANT
  2. # {$path} is used to specify AMPPS installation path
  3.  
  4. # MySQL config file for medium systems.
  5. #
  6. # This is for a system with little memory (32M - 64M) where MySQL plays
  7. # an important part, or systems up to 128M where MySQL is used together with
  8. # other programs (such as a web server)
  9. #
  10. # You can copy this file to
  11. # /etc/my.cnf to set global options,
  12. # mysql-data-dir/my.cnf to set server-specific options (in this
  13. # installation this directory is {$path}/mysql/data) or
  14. # ~/.my.cnf to set user-specific options.
  15. #
  16. # In this file, you can use all long options that a program supports.
  17. # If you want to know which options a program supports, run the program
  18. # with the "--help" option.
  19.  
  20.  
  21. # CLIENT SECTION
  22. # ----------------------------------------------------------------------
  23. #
  24. # The following options will be read by MySQL client applications.
  25. # Note that only client applications shipped by MySQL are guaranteed
  26. # to read this section. If you want your own MySQL client program to
  27. # honor these values, you need to specify it as an option during the
  28. # MySQL client library initialization.
  29. #
  30. [client]
  31. password = mysql
  32. port = 3306
  33. socket = "{$path}/mysql/mysql.sock"
  34.  
  35. [mysql]
  36. default-character-set=utf8
  37.  
  38.  
  39. # SERVER SECTION
  40. # ----------------------------------------------------------------------
  41. #
  42. # The following options will be read by the MySQL Server. Make sure that
  43. # you have installed the server correctly (see above) so it reads this
  44. # file.
  45. #
  46. [mysqld]
  47. # The TCP/IP Port the MySQL Server will listen on
  48. port=3306
  49.  
  50. #Path to installation directory. All paths are usually resolved relative to this.
  51. basedir="{$path}/mysql/"
  52.  
  53. #Path to the database root
  54. datadir="{$path}/mysql/data/"
  55.  
  56. socket = "{$path}/mysql/mysql.sock"
  57. skip-external-locking
  58. key_buffer_size = 512M
  59. max_allowed_packet = 256M
  60. table_open_cache = 64
  61. sort_buffer_size = 512K
  62. net_buffer_length = 8K
  63. read_buffer_size = 256K
  64. read_rnd_buffer_size = 512K
  65. myisam_sort_buffer_size = 8M
  66. lower_case_table_names=2
  67.  
  68. thread_stack = 8M
  69. thread_cache_size = 8
  70. query_cache_limit = 128M
  71. query_cache_size = 256M
  72.  
  73. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  74. # if all processes that need to connect to mysqld run on the same host.
  75. # All interaction with mysqld must be made via Unix sockets or named pipes.
  76. # Note that using this option without enabling named pipes on Windows
  77. # (via the "enable-named-pipe" option) will render mysqld useless!
  78. #
  79. #skip-networking
  80.  
  81. # REPLICATION
  82. # ----------------------------------------------------------------------
  83. # Replication Master Server (default)
  84. # binary logging is required for replication
  85. #log-bin=mysql-bin
  86.  
  87. # binary logging format - mixed recommended
  88. binlog_format=mixed
  89.  
  90. # required unique id between 1 and 2^32 - 1
  91. # defaults to 1 if master-host is not set
  92. # but will not function as a master if omitted
  93. server-id = 1
  94.  
  95. # Replication Slave (comment out master section to use this)
  96. #
  97. # To configure this host as a replication slave, you can choose between
  98. # two methods :
  99. #
  100. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  101. # the syntax is:
  102. #
  103. # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  104. # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  105. #
  106. # where you replace <host>, <user>, <password> by quoted strings and
  107. # <port> by the master's port number (3306 by default).
  108. #
  109. # Example:
  110. #
  111. # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  112. # MASTER_USER='joe', MASTER_PASSWORD='secret';
  113. #
  114. # OR
  115. #
  116. # 2) Set the variables below. However, in case you choose this method, then
  117. # start replication for the first time (even unsuccessfully, for example
  118. # if you mistyped the password in master-password and the slave fails to
  119. # connect), the slave will create a master.info file, and any later
  120. # change in this file to the variables' values below will be ignored and
  121. # overridden by the content of the master.info file, unless you shutdown
  122. # the slave server, delete master.info and restart the slaver server.
  123. # For that reason, you may want to leave the lines below untouched
  124. # (commented) and instead use CHANGE MASTER TO (see above)
  125. #
  126. # required unique id between 2 and 2^32 - 1
  127. # (and different from the master)
  128. # defaults to 2 if master-host is set
  129. # but will not function as a slave if omitted
  130. #server-id = 2
  131. #
  132. # The replication master for this slave - required
  133. #master-host = <hostname>
  134. #
  135. # The username the slave will use for authentication when connecting
  136. # to the master - required
  137. #master-user = <username>
  138. #
  139. # The password the slave will authenticate with when connecting to
  140. # the master - required
  141. #master-password = <password>
  142. #
  143. # The port the master is listening on.
  144. # optional - defaults to 3306
  145. #master-port = <port>
  146. #
  147. # binary logging - not required for slaves, but recommended
  148. #log-bin=mysql-bin
  149.  
  150. # Point the following paths to different dedicated disks
  151. #tmpdir = /tmp/
  152. #log-update = /path-to-dedicated-directory/hostname
  153.  
  154.  
  155. # Uncomment the following if you are using InnoDB tables
  156. #innodb_data_home_dir = {$path}/mysql/data/
  157. #innodb_data_file_path = ibdata1:10M:autoextend
  158. #innodb_log_group_home_dir = {$path}/mysql/data/
  159. # You can set .._buffer_pool_size up to 50 - 80 %
  160. # of RAM but beware of setting memory usage too high
  161. innodb_buffer_pool_size = 2G
  162. #innodb_additional_mem_pool_size = 2M
  163. # Set .._log_file_size to 25 % of buffer pool size
  164. innodb_log_file_size = 512M
  165. innodb_log_buffer_size = 64M
  166. innodb_flush_log_at_trx_commit = 2
  167. #innodb_lock_wait_timeout = 50
  168. #innodb_thread_concurrency= 10
  169.  
  170. [mysqldump]
  171. quick
  172. max_allowed_packet = 512M
  173.  
  174. [mysql]
  175. no-auto-rehash
  176. # Remove the next comment character if you are not familiar with SQL
  177. #safe-updates
  178.  
  179. [myisamchk]
  180. key_buffer_size = 128M
  181. sort_buffer_size = 20M
  182. read_buffer = 2M
  183. write_buffer = 2M
  184.  
  185. [mysqlhotcopy]
  186. interactive-timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement