Guest User

Untitled

a guest
Oct 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.70 KB | None | 0 0
  1. # Example MySQL config file for small systems.
  2.  
  3. #
  4. # This is for a system with little memory (<= 64M) where MySQL is only used
  5. # from time to time and it's important that the mysqld daemon
  6. # doesn't use much resources.
  7. #
  8. # You can copy this file to
  9. # C:/xampp/mysql/bin/my.cnf to set global options,
  10. # mysql-data-dir/my.cnf to set server-specific options (in this
  11. # installation this directory is C:/xampp/mysql/data) or
  12. # ~/.my.cnf to set user-specific options.
  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 = "C:/xampp/mysql/mysql.sock"
  23.  
  24.  
  25. # Here follows entries for some specific programs
  26.  
  27. # The MySQL server
  28. [mysqld]
  29. port= 3306
  30. socket = "C:/xampp/mysql/mysql.sock"
  31. basedir = "C:/xampp/mysql"
  32. tmpdir = "C:/xampp/tmp"
  33. datadir = "C:/xampp/mysql/data"
  34. pid_file = "mysql.pid"
  35. # enable-named-pipe
  36. key_buffer = 16M
  37. max_allowed_packet = 16M
  38. sort_buffer_size = 512K
  39. net_buffer_length = 8K
  40. read_buffer_size = 256K
  41. read_rnd_buffer_size = 512K
  42. myisam_sort_buffer_size = 8M
  43. log_error = "mysql_error.log"
  44.  
  45. server-id=1
  46. log-bin="mysql-bin"
  47. log_error=mysql-bin.err
  48. binlog-ignore-db=test
  49. binlog-ignore-db=information_schema
  50. replicate-ignore-db=test
  51. replicate-ignore-db=information_schema
  52. relay-log="mysql-relay-log"
  53. auto-increment-increment = 2
  54. auto-increment-offset = 1
  55.  
  56.  
  57.  
  58. # Change here for bind listening
  59. bind-address="192.168.0.101"
  60. # bind-address = ::1 # for ipv6
  61.  
  62. # Where do all the plugins live
  63. plugin_dir = "C:/xampp/mysql/lib/plugin/"
  64.  
  65. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  66. # if all processes that need to connect to mysqld run on the same host.
  67. # All interaction with mysqld must be made via Unix sockets or named pipes.
  68. # Note that using this option without enabling named pipes on Windows
  69. # (via the "enable-named-pipe" option) will render mysqld useless!
  70. #
  71. # commented in by lampp security
  72. #skip-networking
  73. skip-federated
  74.  
  75. # Replication Master Server (default)
  76. # binary logging is required for replication
  77. # log-bin deactivated by default since XAMPP 1.4.11
  78. #log-bin=mysql-bin
  79.  
  80. # required unique id between 1 and 2^32 - 1
  81. # defaults to 1 if master-host is not set
  82. # but will not function as a master if omitted
  83. #server-id = 1
  84.  
  85. # Replication Slave (comment out master section to use this)
  86. #
  87. # To configure this host as a replication slave, you can choose between
  88. # two methods :
  89. #
  90. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  91. # the syntax is:
  92. #
  93. # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
  94. # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
  95.  
  96. # CHANGE MASTER TO MASTER_HOST = '192.168.0.2', MASTER_USER = 'replicator', MASTER_PASSWORD = 'password', MASTER_LOG_FILE = 'mysql-bin.000001', MASTER_LOG_POS = '2737';
  97.  
  98. #
  99. # where you replace <host>, <user>, <password> by quoted strings and
  100. # <port> by the master's port number (3306 by default).
  101. #
  102. # Example:
  103. #
  104. # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  105. # MASTER_USER='joe', MASTER_PASSWORD='secret';
  106. #
  107. # OR
  108. #
  109. # 2) Set the variables below. However, in case you choose this method, then
  110. # start replication for the first time (even unsuccessfully, for example
  111. # if you mistyped the password in master-password and the slave fails to
  112. # connect), the slave will create a master.info file, and any later
  113. # change in this file to the variables' values below will be ignored and
  114. # overridden by the content of the master.info file, unless you shutdown
  115. # the slave server, delete master.info and restart the slaver server.
  116. # For that reason, you may want to leave the lines below untouched
  117. # (commented) and instead use CHANGE MASTER TO (see above)
  118. #
  119. # required unique id between 2 and 2^32 - 1
  120. # (and different from the master)
  121. # defaults to 2 if master-host is set
  122. # but will not function as a slave if omitted
  123. #server-id = 2
  124. #
  125. # The replication master for this slave - required
  126. #master-host = <hostname>
  127. #
  128. # The username the slave will use for authentication when connecting
  129. # to the master - required
  130. #master-user = <username>
  131. #
  132. # The password the slave will authenticate with when connecting to
  133. # the master - required
  134. #master-password = <password>
  135. #
  136. # The port the master is listening on.
  137. # optional - defaults to 3306
  138. #master-port = <port>
  139. #
  140. # binary logging - not required for slaves, but recommended
  141. #log-bin=mysql-bin
  142.  
  143.  
  144. # Point the following paths to different dedicated disks
  145. #tmpdir = "C:/xampp/tmp"
  146. #log-update = /path-to-dedicated-directory/hostname
  147.  
  148. # Uncomment the following if you are using BDB tables
  149. #bdb_cache_size = 4M
  150. #bdb_max_lock = 10000
  151.  
  152. # Comment the following if you are using InnoDB tables
  153. #skip-innodb
  154. innodb_data_home_dir = "C:/xampp/mysql/data"
  155. innodb_data_file_path = ibdata1:10M:autoextend
  156. innodb_log_group_home_dir = "C:/xampp/mysql/data"
  157. #innodb_log_arch_dir = "C:/xampp/mysql/data"
  158. ## You can set .._buffer_pool_size up to 50 - 80 %
  159. ## of RAM but beware of setting memory usage too high
  160. innodb_buffer_pool_size = 16M
  161. innodb_additional_mem_pool_size = 2M
  162. ## Set .._log_file_size to 25 % of buffer pool size
  163. innodb_log_file_size = 5M
  164. innodb_log_buffer_size = 8M
  165. innodb_flush_log_at_trx_commit = 1
  166. innodb_lock_wait_timeout = 50
  167.  
  168. ## UTF 8 Settings
  169. #init-connect='SET NAMES utf8'
  170. #collation_server=utf8_unicode_ci
  171. #character_set_server=utf8
  172. #skip-character-set-client-handshake
  173. #character_sets-dir="C:/xampp/mysql/share/charsets"
  174.  
  175. [mysqldump]
  176. quick
  177. max_allowed_packet = 16M
  178.  
  179. [mysql]
  180. no-auto-rehash
  181. # Remove the next comment character if you are not familiar with SQL
  182. #safe-updates
  183.  
  184. [isamchk]
  185. key_buffer = 20M
  186. sort_buffer_size = 20M
  187. read_buffer = 2M
  188. write_buffer = 2M
  189.  
  190. [myisamchk]
  191. key_buffer = 20M
  192. sort_buffer_size = 20M
  193. read_buffer = 2M
  194. write_buffer = 2M
  195.  
  196. [mysqlhotcopy]
  197. interactive-timeout
  198.  
  199. Slave_IO_State Connecting to master
  200. Master_Host 192.168.0.2
  201. Master_User replicator
  202. Master_Port 3306
  203. Connect_Retry 60
  204. Master_Log_File mysql-bin.000009
  205. Read_Master_Log_Pos 1465
  206. Relay_Log_File mysql-relay-log.000004
  207. Relay_Log_Pos 4
  208. Relay_Master_Log_File mysql-bin.000009
  209. Slave_IO_Running Connecting
  210. Slave_SQL_Running Yes
  211. Replicate_Do_DB
  212. Replicate_Ignore_DB test, information_schema
  213. Replicate_Do_Table
  214. Replicate_Ignore_Table
  215. Replicate_Wild_Do_Table
  216. Replicate_Wild_Ignore_Table
  217. Last_Errno 0
  218. Last_Error
  219. Skip_Counter 0
  220. Exec_Master_Log_Pos 120
  221. Relay_Log_Space 240
  222. Until_Condition None
  223. Until_Log_File
  224. Until_Log_Pos 0
  225. Master_SSL_Allowed No
  226. Master_SSL_CA_File
  227. Master_SSL_CA_Path
  228. Master_SSL_Cert
  229. Master_SSL_Cipher
  230. Master_SSL_Key
  231. Seconds_Behind_Master 0
Add Comment
Please, Sign In to add comment