Advertisement
Guest User

Untitled

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