Limit concurrent users in MySQL

Posted by ThaiZone, 01-15-2008, 02:49 AM
I try to search and not found the solutions to limit concurrent of db users to connect to MySQL in same time for example: Limit user root to connect to MySQL maximum 5 connections in same time There have max_connections setting but it limit for all users in all connection to MySQL. But I found that in version 4.1.x there have max_connections property in user table (Users and global privileges) of mysql database, this setting is limit connection in 60 minutes. I would like to know if there any setting or code modify for this solution that I want.

Posted by david510, 01-15-2008, 03:55 AM
Set the value as below in /etc/my.cnf file and restart mysql. set-variable = max_user_connections=5

Дали Ви помогна овој одговор?

 Испечати

Исто така прочитајте

Bluehost (Matt Heaton) gives back to the community

Posted by mrzippy, 03-28-2008, 11:14 AMhttp://mattheaton.com/?p=126 Thanks Matt. Posted...

preventing hotlinking of images

Posted by AtoZ, 09-15-2007, 01:38 AMThe images I am trying to block are on page generated by a...

Create A Real Time Web Page

Posted by batulang, 08-14-2006, 06:34 AMHi Everybody, I was thinking is that possible to...

How many daily signups?

Posted by Franki, 09-05-2002, 12:54 PMHello resellers. How many -in average- daily sign-ups do...

How to go about PCI compliance?

Posted by ramdak5000, 01-14-2008, 09:48 PMI have taken basic security measures on my VPS such as...