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

Esta resposta lhe foi útil?

 Imprimir este Artigo

Veja também

lxadmin dns template

Posted by paul-naama, 09-15-2007, 06:36 PMhello all. i just signed up for a new vps host...

CNAME or A record in DNS Zone?

Posted by olddocks, 01-14-2008, 08:14 AMi have just created a dns ZONE for my domain, but i dont...

IE 6.0 and style.display

Posted by jon31, 03-23-2007, 05:14 PMHey folks, I'm working on some cool little AJAX scripts,...

WordPress sitemap plugin problem or no ?

Posted by SimonDevise, 11-06-2012, 05:25 AMI have use WordPress sitemap plugin 2-3 month, but I...

Booting from external HDD

Posted by Danny159, 03-30-2008, 07:54 AMHey, I want to install Linux Ubuntu onto it, the thing...