I don't think we have the access to MySQL cnf file. I guess we have to use other methods.
What I can think is to create a counter in the database. The counter increases by 1 if there is a people connected to database. It reduces by 1 if there is a people disconnected. If the counter reaches the max allowed connects, no more people can connect to database.
You need to be careful with the in and out connections. If the counter is not accurate, you will have less people allowed to connect to database.
Save $97 (MAX Discount) with code: [color=#CC0000]97YES[/color] [url=http://dreamhost.com/r.cgi?296804/signup|97YES]Sign Up NOW[/url] or More Codes Here