my_initial.ini 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. # MySQL programs look for option files in a set of
  8. # locations which depend on the deployment platform.
  9. # You can copy this option file to one of those
  10. # locations. For information about these locations, see:
  11. # http://dev.mysql.com/doc/mysql/en/option-files.html
  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. # 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. # Here follows entries for some specific programs
  22. # The MySQL server
  23. [mysqld]
  24. port = 3306
  25. socket = /tmp/mysql.sock
  26. datadir = "{MYSQLDATAPATH}"
  27. skip-external-locking
  28. key_buffer_size = 16M
  29. max_allowed_packet = 1M
  30. table_open_cache = 64
  31. sort_buffer_size = 512K
  32. net_buffer_length = 8K
  33. read_buffer_size = 256K
  34. read_rnd_buffer_size = 512K
  35. myisam_sort_buffer_size = 8M
  36. explicit_defaults_for_timestamp = TRUE
  37. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  38. # if all processes that need to connect to mysqld run on the same host.
  39. # All interaction with mysqld must be made via Unix sockets or named pipes.
  40. # Note that using this option without enabling named pipes on Windows
  41. # (via the "enable-named-pipe" option) will render mysqld useless!
  42. #
  43. #skip-networking
  44. # Replication Master Server (default)
  45. # binary logging is required for replication
  46. log-bin=mysql-bin
  47. # binary logging format - mixed recommended
  48. binlog_format=mixed
  49. # required unique id between 1 and 2^32 - 1
  50. # defaults to 1 if master-host is not set
  51. # but will not function as a master if omitted
  52. server-id = 1
  53. # Replication Slave (comment out master section to use this)
  54. #
  55. # To configure this host as a replication slave, you can choose between
  56. # two methods :
  57. #
  58. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  59. # the syntax is:
  60. #
  61. # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  62. # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  63. #
  64. # where you replace <host>, <user>, <password> by quoted strings and
  65. # <port> by the master's port number (3306 by default).
  66. #
  67. # Example:
  68. #
  69. # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  70. # MASTER_USER='joe', MASTER_PASSWORD='secret';
  71. #
  72. # OR
  73. #
  74. # 2) Set the variables below. However, in case you choose this method, then
  75. # start replication for the first time (even unsuccessfully, for example
  76. # if you mistyped the password in master-password and the slave fails to
  77. # connect), the slave will create a master.info file, and any later
  78. # change in this file to the variables' values below will be ignored and
  79. # overridden by the content of the master.info file, unless you shutdown
  80. # the slave server, delete master.info and restart the slaver server.
  81. # For that reason, you may want to leave the lines below untouched
  82. # (commented) and instead use CHANGE MASTER TO (see above)
  83. #
  84. # required unique id between 2 and 2^32 - 1
  85. # (and different from the master)
  86. # defaults to 2 if master-host is set
  87. # but will not function as a slave if omitted
  88. #server-id = 2
  89. #
  90. # The replication master for this slave - required
  91. #master-host = <hostname>
  92. #
  93. # The username the slave will use for authentication when connecting
  94. # to the master - required
  95. #master-user = <username>
  96. #
  97. # The password the slave will authenticate with when connecting to
  98. # the master - required
  99. #master-password = <password>
  100. #
  101. # The port the master is listening on.
  102. # optional - defaults to 3306
  103. #master-port = <port>
  104. #
  105. # binary logging - not required for slaves, but recommended
  106. #log-bin=mysql-bin
  107. # Uncomment the following if you are using InnoDB tables
  108. #innodb_data_home_dir = C:\\mysql\\data\\
  109. #innodb_data_file_path = ibdata1:10M:autoextend
  110. #innodb_log_group_home_dir = C:\\mysql\\data\\
  111. # You can set .._buffer_pool_size up to 50 - 80 %
  112. # of RAM but beware of setting memory usage too high
  113. #innodb_buffer_pool_size = 16M
  114. #innodb_additional_mem_pool_size = 2M
  115. # Set .._log_file_size to 25 % of buffer pool size
  116. #innodb_log_file_size = 5M
  117. #innodb_log_buffer_size = 8M
  118. #innodb_flush_log_at_trx_commit = 1
  119. #innodb_lock_wait_timeout = 50
  120. [mysqldump]
  121. quick
  122. max_allowed_packet = 16M
  123. [mysql]
  124. no-auto-rehash
  125. # Remove the next comment character if you are not familiar with SQL
  126. #safe-updates
  127. [myisamchk]
  128. key_buffer_size = 20M
  129. sort_buffer_size = 20M
  130. read_buffer = 2M
  131. write_buffer = 2M
  132. [mysqlhotcopy]
  133. interactive-timeout