Advertisement
Guest User

Untitled

a guest
Dec 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.79 KB | None | 0 0
  1. ; Example MariaDB config file for medium systems.
  2. ;
  3. ; This is for a system with little memory (32M - 64M) where MariaDB plays
  4. ; an important part, or systems up to 128M where MariaDB is used together with
  5. ; other programs (such as a web server)
  6. ;
  7. ; MariaDB programs look for option files in a set of
  8. ; locations which depend on the deployment platform.
  9. ; You can copy this option file to one of those
  10. ; locations. For information about these locations, do:
  11. ; 'my_print_defaults --help' and see what is printed under
  12. ; Default options are read from the following files in the given order:
  13. ; More information at: http://dev.mysql.com/doc/mysql/en/option-files.html
  14. ;
  15. ; In this file, you can use all long options that a program supports.
  16. ; If you want to know which options a program supports, run the program
  17. ; with the "--help" option.
  18.  
  19. ; The following options will be passed to all MariaDB clients
  20. [client]
  21. ;password = your_password
  22. port = 3307
  23. socket = /tmp/mariadb.sock
  24.  
  25. ; Here follows entries for some specific programs
  26.  
  27. ; The MariaDB server
  28. [wampmariadb64]
  29. ;skip-grant-tables
  30. port = 3307
  31. socket = /tmp/mariadb.sock
  32. skip-external-locking
  33. key_buffer_size = 256M
  34. max_allowed_packet = 1M
  35. table_open_cache = 256
  36. sort_buffer_size = 2M
  37. net_buffer_length = 8K
  38. read_buffer_size = 1M
  39. read_rnd_buffer_size = 4M
  40. myisam_sort_buffer_size = 64M
  41. basedir="e:/wamp64/bin/mariadb/mariadb10.2.30"
  42. log-error="e:/wamp64/logs/mariadb.log"
  43. datadir="e:/wamp64/bin/mariadb/mariadb10.2.30/data"
  44.  
  45. ;Path to the language
  46. ;See Documentation:
  47. ; https://mariadb.com/kb/en/mariadb/server-system-variables/#lc_messages
  48. lc-messages-dir="e:/wamp64/bin/mariadb/mariadb10.2.30/share"
  49. lc-messages=en_US
  50.  
  51. ; Set the SQL mode
  52. ;sql-mode=""
  53. ;sql-mode="STRICT_ALL_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER"
  54.  
  55. ; The default storage engine that will be used when create new tables
  56. default-storage-engine=MYISAM
  57.  
  58. ;To avoid warning messages
  59. secure_file_priv="e:/wamp64/tmp"
  60. skip-ssl
  61.  
  62. ; Point the following paths to different dedicated disks
  63. ;tmpdir = /tmp/
  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. ;skip-networking
  72.  
  73. ; Replication Master Server (default)
  74. ; binary logging is required for replication
  75. ;log-bin=mysql-bin
  76.  
  77. ; binary logging format - mixed recommended
  78. ;binlog_format=mixed
  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. ; where you replace <host>, <user>, <password> by quoted strings and
  97. ; <port> by the master's port number (3306 by default).
  98. ;
  99. ; Example:
  100. ;
  101. ; CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  102. ; MASTER_USER='joe', MASTER_PASSWORD='secret';
  103. ;
  104. ; OR
  105. ;
  106. ; 2) Set the variables below. However, in case you choose this method, then
  107. ; start replication for the first time (even unsuccessfully, for example
  108. ; if you mistyped the password in master-password and the slave fails to
  109. ; connect), the slave will create a master.info file, and any later
  110. ; change in this file to the variables' values below will be ignored and
  111. ; overridden by the content of the master.info file, unless you shutdown
  112. ; the slave server, delete master.info and restart the slaver server.
  113. ; For that reason, you may want to leave the lines below untouched
  114. ; (commented) and instead use CHANGE MASTER TO (see above)
  115. ;
  116. ; required unique id between 2 and 2^32 - 1
  117. ; (and different from the master)
  118. ; defaults to 2 if master-host is set
  119. ; but will not function as a slave if omitted
  120. ;server-id = 2
  121. ;
  122. ; The replication master for this slave - required
  123. ;master-host = <hostname>
  124. ;
  125. ; The username the slave will use for authentication when connecting
  126. ; to the master - required
  127. ;master-user = <username>
  128. ;
  129. ; The password the slave will authenticate with when connecting to
  130. ; the master - required
  131. ;master-password = <password>
  132. ;
  133. ; The port the master is listening on.
  134. ; optional - defaults to 3306
  135. ;master-port = <port>
  136. ;
  137. ; binary logging - not required for slaves, but recommended
  138. ;log-bin=mysql-bin
  139.  
  140.  
  141. ; Uncomment the following if you are using InnoDB tables
  142. ;innodb_data_home_dir = C:\\mysql\\data\\
  143. innodb_data_file_path = ibdata1:12M:autoextend
  144. ;innodb_log_group_home_dir = C:\\mysql\\data\\
  145. ; You can set .._buffer_pool_size up to 50 - 80 %
  146. ; of RAM but beware of setting memory usage too high
  147. innodb_buffer_pool_size = 256M
  148. ;innodb_additional_mem_pool_size = 2M
  149. ; Set .._log_file_size to 25 % of buffer pool size
  150. innodb_log_file_size = 64M
  151. innodb_log_buffer_size = 32M
  152. innodb_flush_log_at_trx_commit = 1
  153. innodb_lock_wait_timeout = 50
  154. innodb_flush_method=normal
  155.  
  156. [mysqldump]
  157. quick
  158. max_allowed_packet = 16M
  159.  
  160. [mysql]
  161. no-auto-rehash
  162. ; Remove the next comment character if you are not familiar with SQL
  163. ;safe-updates
  164.  
  165.  
  166. [myisamchk]
  167. key_buffer_size = 20M
  168. sort_buffer_size = 20M
  169. read_buffer = 2M
  170. write_buffer = 2M
  171.  
  172. [mysqlhotcopy]
  173. interactive-timeout
  174.  
  175. [mysqld]
  176. port = 3307
  177. default_storage_engine=innodb
  178. character-set-server=utf8
  179. innodb_file_per_table=ON
  180. innodb_file_format=Barracuda
  181. innodb_flush_log_at_trx_commit=1
  182. max_sp_recursion_depth=255
  183. max_allowed_packet=10M
  184. query_cache_size=0
  185. query_cache_type=OFF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement