Advertisement
Guest User

Untitled

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