Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.72 KB | None | 0 0
  1. # IMPORTANT
  2. # ${path} is used to specify EasyPHP installation path
  3.  
  4. # MySQL config file for medium systems.
  5. #
  6. # This is for a system with little memory (32M - 64M) where MySQL plays
  7. # an important part, or systems up to 128M where MySQL is used together with
  8. # other programs (such as a web server)
  9. #
  10. # You can copy this file to
  11. # /etc/my.cnf to set global options,
  12. # mysql-data-dir/my.cnf to set server-specific options (in this
  13. # installation this directory is C:\mysql\data) or
  14. # ~/.my.cnf to set user-specific options.
  15. #
  16. # In this file, you can use all long options that a program supports.
  17. # If you want to know which options a program supports, run the program
  18. # with the "--help" option.
  19.  
  20.  
  21. # CLIENT SECTION
  22. # ----------------------------------------------------------------------
  23. #
  24. # The following options will be read by MySQL client applications.
  25. # Note that only client applications shipped by MySQL are guaranteed
  26. # to read this section. If you want your own MySQL client program to
  27. # honor these values, you need to specify it as an option during the
  28. # MySQL client library initialization.
  29. #
  30. [client]
  31. password = mysql
  32. port = 3306
  33. socket = /tmp/mysql.sock
  34.  
  35. [mysql]
  36. default-character-set=utf8
  37.  
  38.  
  39. # SERVER SECTION
  40. # ----------------------------------------------------------------------
  41. #
  42. # The following options will be read by the MySQL Server. Make sure that
  43. # you have installed the server correctly (see above) so it reads this
  44. # file.
  45. #
  46. [mysqld]
  47. # The TCP/IP Port the MySQL Server will listen on
  48. port=3306
  49.  
  50. #Path to installation directory. All paths are usually resolved relative to this.
  51. basedir="${path}/mysql/"
  52.  
  53. #Path to the database root
  54. datadir="${path}/mysql/data/"
  55.  
  56. bind-address = 127.0.0.1
  57. socket = /tmp/mysql.sock
  58. skip-locking
  59. key_buffer_size = 16M
  60. max_allowed_packet = 1M
  61. table_open_cache = 64
  62. sort_buffer_size = 512K
  63. net_buffer_length = 8K
  64. read_buffer_size = 256K
  65. read_rnd_buffer_size = 512K
  66. myisam_sort_buffer_size = 8M
  67.  
  68. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  69. # if all processes that need to connect to mysqld run on the same host.
  70. # All interaction with mysqld must be made via Unix sockets or named pipes.
  71. # Note that using this option without enabling named pipes on Windows
  72. # (via the "enable-named-pipe" option) will render mysqld useless!
  73. #
  74. #skip-networking
  75.  
  76. # REPLICATION
  77. # ----------------------------------------------------------------------
  78. # Replication Master Server (default)
  79. # binary logging is required for replication
  80. log-bin=mysql-bin
  81.  
  82. # binary logging format - mixed recommended
  83. binlog_format=mixed
  84.  
  85. # required unique id between 1 and 2^32 - 1
  86. # defaults to 1 if master-host is not set
  87. # but will not function as a master if omitted
  88. server-id = 1
  89.  
  90. # Replication Slave (comment out master section to use this)
  91. #
  92. # To configure this host as a replication slave, you can choose between
  93. # two methods :
  94. #
  95. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  96. # the syntax is:
  97. #
  98. # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  99. # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  100. #
  101. # where you replace <host>, <user>, <password> by quoted strings and
  102. # <port> by the master's port number (3306 by default).
  103. #
  104. # Example:
  105. #
  106. # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  107. # MASTER_USER='joe', MASTER_PASSWORD='secret';
  108. #
  109. # OR
  110. #
  111. # 2) Set the variables below. However, in case you choose this method, then
  112. # start replication for the first time (even unsuccessfully, for example
  113. # if you mistyped the password in master-password and the slave fails to
  114. # connect), the slave will create a master.info file, and any later
  115. # change in this file to the variables' values below will be ignored and
  116. # overridden by the content of the master.info file, unless you shutdown
  117. # the slave server, delete master.info and restart the slaver server.
  118. # For that reason, you may want to leave the lines below untouched
  119. # (commented) and instead use CHANGE MASTER TO (see above)
  120. #
  121. # required unique id between 2 and 2^32 - 1
  122. # (and different from the master)
  123. # defaults to 2 if master-host is set
  124. # but will not function as a slave if omitted
  125. #server-id = 2
  126. #
  127. # The replication master for this slave - required
  128. #master-host = <hostname>
  129. #
  130. # The username the slave will use for authentication when connecting
  131. # to the master - required
  132. #master-user = <username>
  133. #
  134. # The password the slave will authenticate with when connecting to
  135. # the master - required
  136. #master-password = <password>
  137. #
  138. # The port the master is listening on.
  139. # optional - defaults to 3306
  140. #master-port = <port>
  141. #
  142. # binary logging - not required for slaves, but recommended
  143. #log-bin=mysql-bin
  144.  
  145. # Point the following paths to different dedicated disks
  146. #tmpdir = /tmp/
  147. #log-update = /path-to-dedicated-directory/hostname
  148.  
  149.  
  150. # Uncomment the following if you are using InnoDB tables
  151. #innodb_data_home_dir = C:\mysql\data/
  152. #innodb_data_file_path = ibdata1:10M:autoextend
  153. #innodb_log_group_home_dir = C:\mysql\data/
  154. # You can set .._buffer_pool_size up to 50 - 80 %
  155. # of RAM but beware of setting memory usage too high
  156. #innodb_buffer_pool_size = 16M
  157. #innodb_additional_mem_pool_size = 2M
  158. # Set .._log_file_size to 25 % of buffer pool size
  159. #innodb_log_file_size = 5M
  160. #innodb_log_buffer_size = 8M
  161. #innodb_flush_log_at_trx_commit = 1
  162. #innodb_lock_wait_timeout = 50
  163.  
  164. [mysqldump]
  165. quick
  166. max_allowed_packet = 16M
  167.  
  168. [mysql]
  169. no-auto-rehash
  170. # Remove the next comment character if you are not familiar with SQL
  171. #safe-updates
  172.  
  173. [myisamchk]
  174. key_buffer_size = 20M
  175. sort_buffer_size = 20M
  176. read_buffer = 2M
  177. write_buffer = 2M
  178.  
  179. [mysqlhotcopy]
  180. interactive-timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement