Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.39 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
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181. ####################################
  182.  
  183. master config
  184.  
  185. # Example MySQL config file for medium systems.
  186. #
  187. # This is for a system with little memory (32M - 64M) where MySQL plays
  188. # an important part, or systems up to 128M where MySQL is used together with
  189. # other programs (such as a web server)
  190. #
  191. # You can copy this file to
  192. # /etc/my.cnf to set global options,
  193. # mysql-data-dir/my.cnf to set server-specific options (in this
  194. # installation this directory is C:\mysql\data) or
  195. # ~/.my.cnf to set user-specific options.
  196. #
  197. # In this file, you can use all long options that a program supports.
  198. # If you want to know which options a program supports, run the program
  199. # with the "--help" option.
  200.  
  201. # The following options will be passed to all MySQL clients
  202. [client]
  203. #password = your_password
  204. port = 3306
  205. socket = /tmp/mysql.sock
  206.  
  207. # Here follows entries for some specific programs
  208.  
  209. # The MySQL server
  210. [wampmysqld]
  211. port = 3306
  212. socket = /tmp/mysql.sock
  213. log-bin=mysql-bin
  214. key_buffer = 16M
  215. max_allowed_packet = 1M
  216. table_cache = 64
  217. sort_buffer_size = 512K
  218. net_buffer_length = 8K
  219. read_buffer_size = 256K
  220. read_rnd_buffer_size = 512K
  221. myisam_sort_buffer_size = 8M
  222. basedir=c:/wamp/bin/mysql/mysql5.5.8
  223. log-error=c:/wamp/logs/mysql.log
  224. datadir=c:/wamp/bin/mysql/mysql5.5.8/data
  225.  
  226. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  227. # if all processes that need to connect to mysqld run on the same host.
  228. # All interaction with mysqld must be made via Unix sockets or named pipes.
  229. # Note that using this option without enabling named pipes on Windows
  230. # (via the "enable-named-pipe" option) will render mysqld useless!
  231. #
  232. #skip-networking
  233.  
  234. # Disable Federated by default
  235. skip-federated
  236.  
  237. # Replication Master Server (default)
  238. # binary logging is required for replication
  239. log-bin=mysql-bin
  240.  
  241. # binary logging format - mixed recommended
  242. binlog_format=mixed
  243.  
  244. # required unique id between 1 and 2^32 - 1
  245. # defaults to 1 if master-host is not set
  246. # but will not function as a master if omitted
  247. server-id = 2
  248.  
  249. # Replication Slave (comment out master section to use this)
  250. #
  251. # To configure this host as a replication slave, you can choose between
  252. # two methods :
  253. #
  254. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  255. # the syntax is:
  256. #
  257. # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  258. # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  259. #
  260. # where you replace <host>, <user>, <password> by quoted strings and
  261. # <port> by the master's port number (3306 by default).
  262. #
  263. # Example:
  264. #
  265. # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  266. # MASTER_USER='joe', MASTER_PASSWORD='secret';
  267. #
  268. # OR
  269. #
  270. # 2) Set the variables below. However, in case you choose this method, then
  271. # start replication for the first time (even unsuccessfully, for example
  272. # if you mistyped the password in master-password and the slave fails to
  273. # connect), the slave will create a master.info file, and any later
  274. # change in this file to the variables' values below will be ignored and
  275. # overridden by the content of the master.info file, unless you shutdown
  276. # the slave server, delete master.info and restart the slaver server.
  277. # For that reason, you may want to leave the lines below untouched
  278. # (commented) and instead use CHANGE MASTER TO (see above)
  279. #
  280. # required unique id between 2 and 2^32 - 1
  281. # (and different from the master)
  282. # defaults to 2 if master-host is set
  283. # but will not function as a slave if omitted
  284. #server-id = 2
  285. #
  286. # The replication master for this slave - required
  287. #master-host = <hostname>
  288. #
  289. # The username the slave will use for authentication when connecting
  290. # to the master - required
  291. #master-user = <username>
  292. #
  293. # The password the slave will authenticate with when connecting to
  294. # the master - required
  295. #master-password = <password>
  296. #
  297. # The port the master is listening on.
  298. # optional - defaults to 3306
  299. #master-port = <port>
  300. #
  301. # binary logging - not required for slaves, but recommended
  302. #log-bin=mysql-bin
  303.  
  304. # Point the following paths to different dedicated disks
  305. #tmpdir = /tmp/
  306. #log-update = /path-to-dedicated-directory/hostname
  307.  
  308. # Uncomment the following if you are using InnoDB tables
  309. #innodb_data_home_dir = C:\mysql\data/
  310. #innodb_data_file_path = ibdata1:10M:autoextend
  311. #innodb_log_group_home_dir = C:\mysql\data/
  312. #innodb_log_arch_dir = C:\mysql\data/
  313. # You can set .._buffer_pool_size up to 50 - 80 %
  314. # of RAM but beware of setting memory usage too high
  315. innodb_buffer_pool_size = 2000M
  316. #innodb_additional_mem_pool_size = 2M
  317. # Set .._log_file_size to 25 % of buffer pool size
  318. #innodb_log_file_size = 5M
  319. #innodb_log_buffer_size = 8M
  320. innodb_flush_log_at_trx_commit = 1
  321. sync_binlog=1
  322. #innodb_lock_wait_timeout = 5000
  323.  
  324. [mysqldump]
  325. quick
  326. max_allowed_packet = 16M
  327.  
  328. [mysql]
  329. no-auto-rehash
  330. # Remove the next comment character if you are not familiar with SQL
  331. #safe-updates
  332.  
  333. [isamchk]
  334. key_buffer = 20M
  335. sort_buffer_size = 20M
  336. read_buffer = 2M
  337. write_buffer = 2M
  338.  
  339. [myisamchk]
  340. key_buffer = 20M
  341. sort_buffer_size = 20M
  342. read_buffer = 2M
  343. write_buffer = 2M
  344.  
  345. [mysqlhotcopy]
  346. interactive-timeout
  347.  
  348. [mysqld]
  349. port=3306
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement