You are on page 1of 2

back_log Command-Line Format --back_log=# Option-File Format back_log Option Sets Variable Yes, back_log Variable Name back_log

Variable Scope Global Dynamic Variable No Permitted Values Type numeric Default 50 Range 1 .. 65535 The number of outstanding connection requests MySQL can have. This comes into p lay when the main MySQL thread gets very many connection requests in a very shor t time. It then takes some time (although very little) for the main thread to ch eck the connection and start a new thread. The back_log value indicates how many requests can be stacked during this short time before MySQL momentarily stops a nswering new requests. You need to increase this only if you expect a large numb er of connections in a short period of time. In other words, this value is the size of the listen queue for incoming TCP/IP connections. Your operating system has its own limit on the size of this queue. The manual page for the Unix listen() system call should have more details. Chec k your OS documentation for the maximum value for this variable. back_log cannot be set higher than your operating system limit. -----------------------------------------------max_connections Command-Line Format --max_connections=# Option-File Format max_connections Option Sets Variable Yes, max_connections Variable Name max_connections Variable Scope Global Dynamic Variable Yes The maximum permitted number of simultaneous client connections. By default, th is is 100. See Section C.5.2.7, Too many connections , for more information. Increasing this value increases the number of file descriptors that mysqld requ ires. See Section 7.8.2, How MySQL Opens and Closes Tables , for comments on file d escriptor limits. ------------------------------------------------max_connect_errors Command-Line Format --max_connect_errors=# Option-File Format max_connect_errors Option Sets Variable Yes, max_connect_errors Variable Name max_connect_errors Variable Scope Global Dynamic Variable Yes Permitted Values Platform Bit Size 32 Type numeric Default 10 Range 1 .. 4294967295 Permitted Values Platform Bit Size 64 Type numeric

Default 10 Range 1 .. 18446744073709547520 If there are more than this number of interrupted connections from a host, that host is blocked from further connections. You can unblock blocked hosts with th e FLUSH HOSTS statement. If a connection is established successfully within fewe r than max_connect_errors attempts after a previous connection was interrupted, the error count for the host is cleared to zero. However, once a host is blocked , the FLUSH HOSTS statement is the only way to unblock it -------------------------------------------------

You might also like