Advertisement
Guest User

Untitled

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