Advertisement
Guest User

Untitled

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