Anything they can do, we can do better

MySQL: Fix bad connection error defaults


By Zubrcom Webmaster - Posted on 15 April 2010

For whatever reason MySQL server software ships with really stupid defaults for handling problems with the incoming connections. Obviously, Zubrcom's intallation of MySQL does not suffer from this problem. However, if you have braved rolling your own installation it may be helpful to add the following lines in /etc/my.cnf:


[mysqld]
max_connections = 1100 # max number of clients if each client is non-threaded
max_connect_errors=99999999 # dont stop mysql before it gets this many connection errors.
max_user_connections = 1100 # max connections per user

If MySQL is already running, login into root account and use comand SET GLOBAL to change the variable setting without restarting MySQL.

Offer Spotlight

Dedicated Server
Unmetered-10 SmallBusiness-2
Proven Server Platform: Small Business

CPU: 2x Intel Xeon 5110
Total Cores: 4
RAM: 8G
HD: 2x500G SATA, hot-swap
RAID: RAID-1 (mirror), software
Management: basic OS management
Network Ports: 10 Mbit
Bandwidth Included: 10Mbit/sec
$499.99
/ 30 days
Setup: $129.99