Advertisement
Guest User

Untitled

a guest
Dec 5th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. ; Example MySQL config file for medium systems.
  2. ;
  3. ; This is for a large system with memory of 1G-2G where the system runs mainly
  4. ; MySQL.
  5. ;
  6. ; MySQL programs look for option files in a set of
  7. ; locations which depend on the deployment platform.
  8. ; You can copy this option file to one of those
  9. ; locations. For information about these locations, see:
  10. ; http://dev.mysql.com/doc/mysql/en/option-files.html
  11. ;
  12. ; In this file, you can use all long options that a program supports.
  13. ; If you want to know which options a program supports, run the program
  14. ; with the "--help" option.
  15.  
  16. ; The following options will be passed to all MySQL clients
  17. [client]
  18. ;password = your_password
  19. port = 3306
  20. socket = /tmp/mysql.sock
  21.  
  22. ; Here follows entries for some specific programs
  23.  
  24. ; The MySQL server
  25. [wampmysqld]
  26. ;skip-grant-tables
  27. port = 3306
  28. socket = /tmp/mysql.sock
  29. key_buffer_size = 64M
  30. max_allowed_packet = 1M
  31.  
  32. ;Added to reduce memory used (minimum is 400)
  33. table_definition_cache = 600
  34.  
  35. sort_buffer_size = 2M
  36. net_buffer_length = 8K
  37. read_buffer_size = 2M
  38. read_rnd_buffer_size = 2M
  39. myisam_sort_buffer_size = 32M
  40. ;Path to mysql install directory
  41. basedir="c:/WampServer32/bin/mysql/mysql5.7.19"
  42. log-error="c:/WampServer32/logs/mysql.log"
  43. ;Verbosity Value 1 Errors only, 2 Errors and warnings , 3 Errors, warnings, and notes
  44. log_error_verbosity=2
  45. ;Path to data directory
  46. datadir="c:/WampServer32/bin/mysql/mysql5.7.19/data"
  47.  
  48. ;Path to the language
  49. ;See Documentation:
  50. ; http://dev.mysql.com/doc/refman/5.7/en/error-message-language.html
  51. lc-messages-dir="c:/WampServer32/bin/mysql/mysql5.7.19/share"
  52. lc-messages=en_US
  53.  
  54. ; The default storage engine that will be used when create new tables
  55. default-storage-engine=MYISAM
  56. ; New for MySQL 5.6 default_tmp_storage_engine if skip-innodb enable
  57. ; default_tmp_storage_engine=MYISAM
  58.  
  59. ;To avoid warning messages
  60. secure_file_priv="c:/WampServer32/tmp"
  61. skip-ssl
  62.  
  63. explicit_defaults_for_timestamp=true
  64.  
  65. ; Set the SQL mode to strict
  66. ;sql-mode=""
  67. sql-mode="STRICT_ALL_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER"
  68.  
  69. ; Don't listen on a TCP/IP port at all. This can be a security enhancement,
  70. ; if all processes that need to connect to mysqld run on the same host.
  71. ; All interaction with mysqld must be made via Unix sockets or named pipes.
  72. ; Note that using this option without enabling named pipes on Windows
  73. ; (via the "enable-named-pipe" option) will render mysqld useless!
  74. ;
  75. ;skip-networking
  76.  
  77. ; Disable Federated by default
  78. skip-federated
  79.  
  80. ; Replication Master Server (default)
  81. ; binary logging is required for replication
  82. ;log-bin=mysql-bin
  83.  
  84. ; binary logging format - mixed recommended
  85. ;binlog_format=mixed
  86.  
  87. ; required unique id between 1 and 2^32 - 1
  88. ; defaults to 1 if master-host is not set
  89. ; but will not function as a master if omitted
  90. server-id = 1
  91.  
  92. ; Replication Slave (comment out master section to use this)
  93.  
  94. ; New for MySQL 5.6 if no slave
  95. skip-slave-start
  96.  
  97. ;
  98. ; To configure this host as a replication slave, you can choose between
  99. ; two methods :
  100. ;
  101. ; 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  102. ; the syntax is:
  103. ;
  104. ; CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  105. ; MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  106. ;
  107. ; where you replace <host>, <user>, <password> by quoted strings and
  108. ; <port> by the master's port number (3306 by default).
  109. ;
  110. ; Example:
  111. ;
  112. ; CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  113. ; MASTER_USER='joe', MASTER_PASSWORD='secret';
  114. ;
  115. ; OR
  116. ;
  117. ; 2) Set the variables below. However, in case you choose this method, then
  118. ; start replication for the first time (even unsuccessfully, for example
  119. ; if you mistyped the password in master-password and the slave fails to
  120. ; connect), the slave will create a master.info file, and any later
  121. ; change in this file to the variables' values below will be ignored and
  122. ; overridden by the content of the master.info file, unless you shutdown
  123. ; the slave server, delete master.info and restart the slaver server.
  124. ; For that reason, you may want to leave the lines below untouched
  125. ; (commented) and instead use CHANGE MASTER TO (see above)
  126. ;
  127. ; required unique id between 2 and 2^32 - 1
  128. ; (and different from the master)
  129. ; defaults to 2 if master-host is set
  130. ; but will not function as a slave if omitted
  131. ;server-id = 2
  132. ;
  133. ; The replication master for this slave - required
  134. ;master-host = <hostname>
  135. ;
  136. ; The username the slave will use for authentication when connecting
  137. ; to the master - required
  138. ;master-user = <username>
  139. ;
  140. ; The password the slave will authenticate with when connecting to
  141. ; the master - required
  142. ;master-password = <password>
  143. ;
  144. ; The port the master is listening on.
  145. ; optional - defaults to 3306
  146. ;master-port = <port>
  147. ;
  148. ; binary logging - not required for slaves, but recommended
  149. ;log-bin=mysql-bin
  150.  
  151. ; Point the following paths to different dedicated disks
  152. ;tmpdir = /tmp/
  153. ;log-update = /path-to-dedicated-directory/hostname
  154.  
  155. ; The InnoDB tablespace encryption feature relies on the keyring_file
  156. ; plugin for encryption key management, and the keyring_file plugin
  157. ; must be loaded prior to storage engine initialization to facilitate
  158. ; InnoDB recovery for encrypted tables. If you do not want to load the
  159. ; keyring_file plugin at server startup, specify an empty string.
  160. early-plugin-load=""
  161.  
  162. ;innodb_data_home_dir = C:/mysql/data/
  163. innodb_data_file_path = ibdata1:12M:autoextend
  164. ;innodb_log_group_home_dir = C:/mysql/data/
  165. ;innodb_log_arch_dir = C:/mysql/data/
  166. ; You can set .._buffer_pool_size up to 50 - 80 %
  167. ; of RAM but beware of setting memory usage too high
  168. innodb_buffer_pool_size = 16M
  169. ; Set .._log_file_size to 25 % of buffer pool size
  170. innodb_log_file_size = 5M
  171. innodb_log_buffer_size = 8M
  172. innodb_flush_log_at_trx_commit = 1
  173. innodb_lock_wait_timeout = 50
  174. innodb_flush_method=normal
  175.  
  176. [mysqldump]
  177. quick
  178. max_allowed_packet = 16M
  179.  
  180. [mysql]
  181. no-auto-rehash
  182. ; Remove the next comment character if you are not familiar with SQL
  183. ;safe-updates
  184.  
  185. [isamchk]
  186. key_buffer_size = 20M
  187. sort_buffer_size = 20M
  188. read_buffer_size = 2M
  189. write_buffer_size = 2M
  190.  
  191. [myisamchk]
  192. key_buffer_size = 20M
  193. sort_buffer_size_size = 20M
  194. read_buffer_size = 2M
  195. write_buffer_size = 2M
  196.  
  197. [mysqlhotcopy]
  198. interactive-timeout
  199.  
  200. [mysqld]
  201. port = 3306
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement