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

Ця відповідь Вам допомогла?

 Роздрукувати цю статтю

Також прочитайте

This guy is running botnet on me....

Posted by Shazz, 08-28-2008, 01:56 AMI have tried everything, hosts that say there secure and can...

Seem Internet Solutions gone down?

Posted by Jollyjohn, 09-11-2001, 07:41 PMwww.seem.co.uk appear to have disappeared, taking my...

grsec WARNING: No module mptscsi found for kernel 2.6.22.9-grsec, continuing anyway

Posted by uploadalerts, 03-27-2008, 04:46 PMHi, I see the following error, while trying to...

Any security risks with setting up server on home network?

Posted by Papa G, 06-28-2008, 04:09 PMAny security risks with setting up server on home network?...

Include and run a script within a program

Posted by Sammyboy99, 02-18-2011, 06:53 PMSo I've made a program that executes a script the only...