PDA

View Full Version : Limit a connection of Mysql



asylu3
09-08-2005, 11:34 AM
เป็นการ config ให้ mysql ทำการจำกัด connection ที่ติดต่อมายัง server สามารถทำได้โดย
edit my.cnf files:
code:--------------------------------------------------------------------------------
[mysqld]
skip-locking
set-variable = max_connections=800
set-variable = connect_timeout=8
set-variable = read_buffer_size=2M
set-variable = sort_buffer=2M
set-variable = key_buffer_size=16M
set-variable = max_allowed_packet=2M
--------------------------------------------------------------------------------
More at: http://www.webhostingtalk.com/archive/thre...d/119946-1.html (http://www.webhostingtalk.com/archive/thread/119946-1.html)