Tag: too many connections error

How to update the max_connections in MySQL

ปัญหาการเกิด error “too many connections” ในขณะที่ query database อยู่ เกิดจากจำนวน connections ที่เข้ามาติดต่อ database มีจำนวนมากกว่าที่ max_connections ได้กำหนดไว้ ซึ่งโดยปกติแล้ว MySQL จะยอมให้มีจำนวน connection ได้เท่ากับ max_connections+1 โดยที่ max_connections คือ จำนวน connection ที่มากที่สุดที่อนุญาต และ +1…