Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 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. [wampmysqld64]
  26. ;skip-grant-tables
  27. port = 3306
  28. socket = /tmp/mysql.sock
  29. key_buffer_size = 64M
  30. max_allowed_packet = 16M
  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:/wamp64/bin/mysql/mysql5.7.14"
  42. log-error="c:/wamp64/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:/wamp64/bin/mysql/mysql5.7.14/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:/wamp64/bin/mysql/mysql5.7.14/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:/wamp64/tmp"
  61. skip-ssl
  62.  
  63. explicit_defaults_for_timestamp=true
  64.  
  65. ; The default SQL mode in MySQL 5.7 includes these modes:
  66. ; ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION.
  67. ; no line sql-mode="" gives default SQL mode
  68. ; To clear the SQL mode explicitly, set it to an empty string using sql-mode=""
  69. ;sql-mode=""
  70. ;sql-mode="STRICT_ALL_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER"
  71.  
  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. ; Disable Federated by default
  82. skip-federated
  83.  
  84. ; Replication Master Server (default)
  85. ; binary logging is required for replication
  86. ;log-bin=mysql-bin
  87.  
  88. ; binary logging format - mixed recommended
  89. ;binlog_format=mixed
  90.  
  91. ; required unique id between 1 and 2^32 - 1
  92. ; defaults to 1 if master-host is not set
  93. ; but will not function as a master if omitted
  94. server-id = 1
  95.  
  96. ; Replication Slave (comment out master section to use this)
  97.  
  98. ; New for MySQL 5.6 if no slave
  99. skip-slave-start
  100.  
  101. ;
  102. ; To configure this host as a replication slave, you can choose between
  103. ; two methods :
  104. ;
  105. ; 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  106. ; the syntax is:
  107. ;
  108. ; CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  109. ; MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  110. ;
  111. ; where you replace <host>, <user>, <password> by quoted strings and
  112. ; <port> by the master's port number (3306 by default).
  113. ;
  114. ; Example:
  115. ;
  116. ; CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  117. ; MASTER_USER='joe', MASTER_PASSWORD='secret';
  118. ;
  119. ; OR
  120. ;
  121. ; 2) Set the variables below. However, in case you choose this method, then
  122. ; start replication for the first time (even unsuccessfully, for example
  123. ; if you mistyped the password in master-password and the slave fails to
  124. ; connect), the slave will create a master.info file, and any later
  125. ; change in this file to the variables' values below will be ignored and
  126. ; overridden by the content of the master.info file, unless you shutdown
  127. ; the slave server, delete master.info and restart the slaver server.
  128. ; For that reason, you may want to leave the lines below untouched
  129. ; (commented) and instead use CHANGE MASTER TO (see above)
  130. ;
  131. ; required unique id between 2 and 2^32 - 1
  132. ; (and different from the master)
  133. ; defaults to 2 if master-host is set
  134. ; but will not function as a slave if omitted
  135. ;server-id = 2
  136. ;
  137. ; The replication master for this slave - required
  138. ;master-host = <hostname>
  139. ;
  140. ; The username the slave will use for authentication when connecting
  141. ; to the master - required
  142. ;master-user = <username>
  143. ;
  144. ; The password the slave will authenticate with when connecting to
  145. ; the master - required
  146. ;master-password = <password>
  147. ;
  148. ; The port the master is listening on.
  149. ; optional - defaults to 3306
  150. ;master-port = <port>
  151. ;
  152. ; binary logging - not required for slaves, but recommended
  153. ;log-bin=mysql-bin
  154.  
  155. ; Point the following paths to different dedicated disks
  156. ;tmpdir = /tmp/
  157. ;log-update = /path-to-dedicated-directory/hostname
  158.  
  159. ; The InnoDB tablespace encryption feature relies on the keyring_file
  160. ; plugin for encryption key management, and the keyring_file plugin
  161. ; must be loaded prior to storage engine initialization to facilitate
  162. ; InnoDB recovery for encrypted tables. If you do not want to load the
  163. ; keyring_file plugin at server startup, specify an empty string.
  164. early-plugin-load=""
  165.  
  166. ; Uncomment the following if you are using InnoDB tables
  167. ;innodb_data_home_dir = C:/mysql/data/
  168. innodb_data_file_path = ibdata1:10M:autoextend
  169. ;innodb_log_group_home_dir = C:/mysql/data/
  170. ;innodb_log_arch_dir = C:/mysql/data/
  171. ; You can set .._buffer_pool_size up to 50 - 80 %
  172. ; of RAM but beware of setting memory usage too high
  173. innodb_buffer_pool_size = 16M
  174. ; Set .._log_file_size to 25 % of buffer pool size
  175. innodb_log_file_size = 5M
  176. innodb_log_buffer_size = 8M
  177. innodb_flush_log_at_trx_commit = 1
  178. innodb_lock_wait_timeout = 60
  179. innodb_flush_method=normal
  180.  
  181. [mysqldump]
  182. quick
  183. max_allowed_packet = 16M
  184.  
  185. [mysql]
  186. no-auto-rehash
  187. ; Remove the next comment character if you are not familiar with SQL
  188. ;safe-updates
  189.  
  190. [isamchk]
  191. key_buffer_size = 20M
  192. sort_buffer_size = 20M
  193. read_buffer_size = 2M
  194. write_buffer_size = 2M
  195.  
  196. [myisamchk]
  197. key_buffer_size = 20M
  198. sort_buffer_size_size = 20M
  199. read_buffer_size = 2M
  200. write_buffer_size = 2M
  201.  
  202. [mysqlhotcopy]
  203. interactive-timeout
  204.  
  205. [mysqld]
  206. port = 3306
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement