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

Hasznosnak találta ezt a választ?

 Kinyomtatja ezt a cikket

Olvassa el is

Sending commands to a socket (C++)

Posted by LindonNetworks, 09-19-2008, 05:53 PMI'm trying to write an SMTP wrapper and I'm...

Going to start hosting...

Posted by Glexicon, 09-13-2001, 01:23 AMI would be getting rackshack.net servers to start my...

How to call/load .net dll(C#) from c++ code?

Posted by TajByte, 03-22-2007, 04:50 AMHow to call/load .net dll(C#) from c++ code? Posted...

Help with signature settings

Posted by Egots, 03-24-2007, 03:27 PMIf I have max chars allowed set at 100 in vBulletin does...

Problem with "." in Windows 2003 Folder

Posted by boonchuan, 06-28-2008, 07:45 AMI had a folder abc.xyz in Windows 2000 server and it had...