> Yes, I'm aware of that. The problem is that the database structure is a 
> reminiscent of the old version, which creates one database per client. It 
> used to be only 40 clients and one web server. Now we have 300+ clients 
> (=300+ databases) and 2 web servers. I always get 'Too many connections' 
> error when I test the application with more than 100 concurrent request. Any 
> other ideas?
> 

I'm assuming that each client database is contained within the same
MySQL server, and that you're not running 300 MySQL servers on different
machines or different ports?

If so, you can reuse the same connections, and just reference the
different database in the query.So : 

select *
from db1.table1

select *
from db2.table1

When you connect and specify a database name, you're just specifying the
default database.

________________________________________________________________________

Clinton Gormley [EMAIL PROTECTED]

www.TravelJury.com - For travellers, By travellers



Reply via email to