Advertisement
Guest User

Untitled

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