Advertisement
Guest User

Untitled

a guest
May 20th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. # Example MySQL config file for small systems.
  2. #
  3. # This is for a system with little memory (<= 64M) where MySQL is only used
  4. # from time to time and it's important that the mysqld daemon
  5. # doesn't use much resources.
  6. #
  7. # You can copy this file to
  8. # C:/xampp/mysql/bin/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:/xampp/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 = "C:/xampp/mysql/mysql.sock"
  22. local-infile=1
  23.  
  24.  
  25. # Here follows entries for some specific programs
  26.  
  27. # The MySQL server
  28. [mysqld]
  29. local-infile=1
  30. port= 3306
  31. socket = "C:/xampp/mysql/mysql.sock"
  32. basedir = "C:/xampp/mysql"
  33. tmpdir = "C:/xampp/tmp"
  34. datadir = "C:/xampp/mysql/data"
  35. pid_file = "mysql.pid"
  36. # enable-named-pipe
  37. key_buffer = 16M
  38. max_allowed_packet = 1M
  39. sort_buffer_size = 512K
  40. net_buffer_length = 8K
  41. read_buffer_size = 256K
  42. read_rnd_buffer_size = 512K
  43. myisam_sort_buffer_size = 8M
  44. log_error = "mysql_error.log"
  45.  
  46. # Change here for bind listening
  47. # bind-address="127.0.0.1"
  48. # bind-address = ::1 # for ipv6
  49.  
  50. # Where do all the plugins live
  51. plugin_dir = "C:/xampp/mysql/lib/plugin/"
  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. # commented in by lampp security
  60. #skip-networking
  61. #skip-federated
  62.  
  63. # Replication Master Server (default)
  64. # binary logging is required for replication
  65. # log-bin deactivated by default since XAMPP 1.4.11
  66. #log-bin=mysql-bin
  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.  
  129. # Point the following paths to different dedicated disks
  130. #tmpdir = "C:/xampp/tmp"
  131. #log-update = /path-to-dedicated-directory/hostname
  132.  
  133. # Uncomment the following if you are using BDB tables
  134. #bdb_cache_size = 4M
  135. #bdb_max_lock = 10000
  136.  
  137. # Comment the following if you are using InnoDB tables
  138. #skip-innodb
  139. innodb_data_home_dir = "C:/xampp/mysql/data"
  140. innodb_data_file_path = ibdata1:10M:autoextend
  141. innodb_log_group_home_dir = "C:/xampp/mysql/data"
  142. #innodb_log_arch_dir = "C:/xampp/mysql/data"
  143. ## You can set .._buffer_pool_size up to 50 - 80 %
  144. ## of RAM but beware of setting memory usage too high
  145. innodb_buffer_pool_size = 16M
  146. innodb_additional_mem_pool_size = 2M
  147. ## Set .._log_file_size to 25 % of buffer pool size
  148. innodb_log_file_size = 5M
  149. innodb_log_buffer_size = 8M
  150. innodb_flush_log_at_trx_commit = 1
  151. innodb_lock_wait_timeout = 50
  152.  
  153. ## UTF 8 Settings
  154. #init-connect=\'SET NAMES utf8\'
  155. #collation_server=utf8_unicode_ci
  156. #character_set_server=utf8
  157. #skip-character-set-client-handshake
  158. #character_sets-dir="C:/xampp/mysql/share/charsets"
  159.  
  160. [mysqldump]
  161. quick
  162. max_allowed_packet = 16M
  163.  
  164. [mysql]
  165. no-auto-rehash
  166. # Remove the next comment character if you are not familiar with SQL
  167. #safe-updates
  168.  
  169. [isamchk]
  170. key_buffer = 20M
  171. sort_buffer_size = 20M
  172. read_buffer = 2M
  173. write_buffer = 2M
  174.  
  175. [myisamchk]
  176. key_buffer = 20M
  177. sort_buffer_size = 20M
  178. read_buffer = 2M
  179. write_buffer = 2M
  180.  
  181. [mysqlhotcopy]
  182. interactive-timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement