Advertisement
Guest User

Untitled

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