Advertisement
Guest User

Untitled

a guest
Jan 26th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. # Other default tuning values
  2. # MySQL Server Instance Configuration File
  3. # ----------------------------------------------------------------------
  4. # Generated by the MySQL Server Instance Configuration Wizard
  5. #
  6. #
  7. # Installation Instructions
  8. # ----------------------------------------------------------------------
  9. #
  10. # On Linux you can copy this file to /etc/my.cnf to set global options,
  11. # mysql-data-dir/my.cnf to set server-specific options
  12. # (@localstatedir@ for this installation) or to
  13. # ~/.my.cnf to set user-specific options.
  14. #
  15. # On Windows you should keep this file in the installation directory
  16. # of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
  17. # make sure the server reads the config file use the startup option
  18. # "--defaults-file".
  19. #
  20. # To run the server from the command line, execute this in a
  21. # command line shell, e.g.
  22. # mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
  23. #
  24. # To install the server as a Windows service manually, execute this in a
  25. # command line shell, e.g.
  26. # mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
  27. #
  28. # And then execute this in a command line shell to start the server, e.g.
  29. # net start MySQLXY
  30. #
  31. #
  32. # Guidelines for editing this file
  33. # ----------------------------------------------------------------------
  34. #
  35. # In this file, you can use all long options that the program supports.
  36. # If you want to know the options a program supports, start the program
  37. # with the "--help" option.
  38. #
  39. # More detailed information about the individual options can also be
  40. # found in the manual.
  41. #
  42. #
  43. # CLIENT SECTION
  44. # ----------------------------------------------------------------------
  45. #
  46. # The following options will be read by MySQL client applications.
  47. # Note that only client applications shipped by MySQL are guaranteed
  48. # to read this section. If you want your own MySQL client program to
  49. # honor these values, you need to specify it as an option during the
  50. # MySQL client library initialization.
  51. #
  52. [client]
  53.  
  54. # pipe=
  55.  
  56. # socket=MYSQL
  57.  
  58. port=3306
  59.  
  60. [mysql]
  61. no-beep
  62.  
  63. # default-character-set=
  64.  
  65. # SERVER SECTION
  66. # ----------------------------------------------------------------------
  67. #
  68. # The following options will be read by the MySQL Server. Make sure that
  69. # you have installed the server correctly (see above) so it reads this
  70. # file.
  71. #
  72. # server_type=2
  73. [mysqld]
  74.  
  75. # The next three options are mutually exclusive to SERVER_PORT below.
  76. # skip-networking
  77. # enable-named-pipe
  78. # shared-memory
  79.  
  80. # shared-memory-base-name=MYSQL
  81.  
  82. # The Pipe the MySQL Server will use
  83. # socket=MYSQL
  84.  
  85. # The TCP/IP Port the MySQL Server will listen on
  86. port=3306
  87.  
  88. # Path to installation directory. All paths are usually resolved relative to this.
  89. # basedir="C:/Program Files/MySQL/MySQL Server 5.5/"
  90.  
  91. # Path to the database root
  92. datadir=C:/ProgramData/MySQL/MySQL Server 5.5/Data
  93.  
  94. # The default character set that will be used when a new schema or table is
  95. # created and no character set is defined
  96. # character-set-server=
  97.  
  98. # The default storage engine that will be used when create new tables when
  99. default-storage-engine=INNODB
  100.  
  101. # Set the SQL mode to strict
  102. sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
  103.  
  104. # General and Slow logging.
  105. log-output=FILE
  106. general-log=0
  107. general_log_file="DESKTOP-IEUD1D0.log"
  108. slow-query-log=1
  109. slow_query_log_file="DESKTOP-IEUD1D0-slow.log"
  110. long_query_time=10
  111.  
  112. # Binary Logging.
  113. # log-bin
  114.  
  115. # Error Logging.
  116. log-error="DESKTOP-IEUD1D0.err"
  117.  
  118. # Server Id.
  119. server-id=1
  120.  
  121. # Specifies the on how table names are stored in the metadata.
  122. # If set to 0, will throw an error on case-insensitive operative systems
  123. # If set to 1, table names are stored in lowercase on disk and comparisons are not case sensitive.
  124. # If set to 2, table names are stored as given but compared in lowercase.
  125. # This option also applies to database names and table aliases.
  126. lower_case_table_names=1
  127.  
  128. # Secure File Priv.
  129. secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.5/Uploads"
  130.  
  131. # The maximum amount of concurrent sessions the MySQL server will
  132. # allow. One of these connections will be reserved for a user with
  133. # SUPER privileges to allow the administrator to login even if the
  134. # connection limit has been reached.
  135. max_connections=100
  136.  
  137. # Query cache is used to cache SELECT results and later return them
  138. # without actual executing the same query once again. Having the query
  139. # cache enabled may result in significant speed improvements, if your
  140. # have a lot of identical queries and rarely changing tables. See the
  141. # "Qcache_lowmem_prunes" status variable to check if the current value
  142. # is high enough for your load.
  143. # Note: In case your tables change very often or if your queries are
  144. # textually different every time, the query cache may result in a
  145. # slowdown instead of a performance improvement.
  146. query_cache_size=0
  147.  
  148. # The number of open tables for all threads. Increasing this value
  149. # increases the number of file descriptors that mysqld requires.
  150. # Therefore you have to make sure to set the amount of open files
  151. # allowed to at least 4096 in the variable "open-files-limit" in
  152. # section [mysqld_safe]
  153. table_open_cache=2000
  154.  
  155. # Maximum size for internal (in-memory) temporary tables. If a table
  156. # grows larger than this value, it is automatically converted to disk
  157. # based table This limitation is for a single table. There can be many
  158. # of them.
  159. tmp_table_size=551M
  160.  
  161. # How many threads we should keep in a cache for reuse. When a client
  162. # disconnects, the client's threads are put in the cache if there aren't
  163. # more than thread_cache_size threads from before. This greatly reduces
  164. # the amount of thread creations needed if you have a lot of new
  165. # connections. (Normally this doesn't give a notable performance
  166. # improvement if you have a good thread implementation.)
  167. thread_cache_size=8
  168.  
  169. #*** MyISAM Specific options
  170. # The maximum size of the temporary file MySQL is allowed to use while
  171. # recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
  172. # If the file-size would be bigger than this, the index will be created
  173. # through the key cache (which is slower).
  174. myisam_max_sort_file_size=100G
  175.  
  176. # If the temporary file used for fast index creation would be bigger
  177. # than using the key cache by the amount specified here, then prefer the
  178. # key cache method. This is mainly used to force long character keys in
  179. # large tables to use the slower key cache method to create the index.
  180. myisam_sort_buffer_size=2G
  181.  
  182. # Size of the Key Buffer, used to cache index blocks for MyISAM tables.
  183. # Do not set it larger than 30% of your available memory, as some memory
  184. # is also required by the OS to cache rows. Even if you're not using
  185. # MyISAM tables, you should still set it to 8-64M as it will also be
  186. # used for internal temporary disk tables.
  187. key_buffer_size=8M
  188.  
  189. # Size of the buffer used for doing full table scans of MyISAM tables.
  190. # Allocated per thread, if a full scan is needed.
  191. read_buffer_size=64K
  192. read_rnd_buffer_size=256K
  193.  
  194. # This buffer is allocated when MySQL needs to rebuild the index in
  195. # REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE
  196. # into an empty table. It is allocated per thread so be careful with
  197. # large settings.
  198. sort_buffer_size=256K
  199.  
  200. #*** INNODB Specific options ***
  201. # innodb_data_home_dir=
  202.  
  203. # Use this option if you have a MySQL server with InnoDB support enabled
  204. # but you do not plan to use it. This will save memory and disk space
  205. # and speed up some things.
  206. # skip-innodb
  207.  
  208. # Additional memory pool that is used by InnoDB to store metadata
  209. # information. If InnoDB requires more memory for this purpose it will
  210. # start to allocate it from the OS. As this is fast enough on most
  211. # recent operating systems, you normally do not need to change this
  212. # value. SHOW INNODB STATUS will display the current amount used.
  213. innodb_additional_mem_pool_size=32M
  214.  
  215. # If set to 1, InnoDB will flush (fsync) the transaction logs to the
  216. # disk at each commit, which offers full ACID behavior. If you are
  217. # willing to compromise this safety, and you are running small
  218. # transactions, you may set this to 0 or 2 to reduce disk I/O to the
  219. # logs. Value 0 means that the log is only written to the log file and
  220. # the log file flushed to disk approximately once per second. Value 2
  221. # means the log is written to the log file at each commit, but the log
  222. # file is only flushed to disk approximately once per second.
  223. innodb_flush_log_at_trx_commit=1
  224.  
  225. # The size of the buffer InnoDB uses for buffering log data. As soon as
  226. # it is full, InnoDB will have to flush it to disk. As it is flushed
  227. # once per second anyway, it does not make sense to have it very large
  228. # (even with long transactions).
  229. innodb_log_buffer_size=16M
  230.  
  231. # InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
  232. # row data. The bigger you set this the less disk I/O is needed to
  233. # access data in tables. On a dedicated database server you may set this
  234. # parameter up to 80% of the machine physical memory size. Do not set it
  235. # too large, though, because competition of the physical memory may
  236. # cause paging in the operating system. Note that on 32bit systems you
  237. # might be limited to 2-3.5G of user level memory per process, so do not
  238. # set it too high.
  239. innodb_buffer_pool_size=5G
  240.  
  241. # Size of each log file in a log group. You should set the combined size
  242. # of log files to about 25%-100% of your buffer pool size to avoid
  243. # unneeded buffer pool flush activity on log file overwrite. However,
  244. # note that a larger logfile size will increase the time needed for the
  245. # recovery process.
  246. innodb_log_file_size=1G
  247.  
  248. # Number of threads allowed inside the InnoDB kernel. The optimal value
  249. # depends highly on the application, hardware as well as the OS
  250. # scheduler properties. A too high value may lead to thread thrashing.
  251. innodb_thread_concurrency=25
  252.  
  253. # The maximum size of one packet or any generated or intermediate string, or any parameter sent by the
  254. # mysql_stmt_send_long_data() C API function.
  255. max_allowed_packet=4M
  256.  
  257. # Load mysql plugins at start."plugin_x ; plugin_y".
  258. # plugin_load
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement