System error

error:  Can't connect to sql server. Reason: Too many connections at /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm line 172.
context: 
... 
168:  if (!$ENV{'MOD_PERL'}) {
169:  require DBI;
170:  }
171:  #$dbh = DBI -> connect("DBI:mysql:phpbb_db:localhost", "root", "")
172:  $dbh = DBI -> connect("DBI:mysql:phpbb3:localhost", "root", "")
173:  or die "Can't connect to sql server. Reason: $DBI::errstr";
174: 
175:  if (!$ENV{'MOD_PERL'}) {
176:  $dbh->{'Warn'} = 0;
... 
code stack:  /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm:172
/opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm:185
/opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm:304
/var/www/db/common/navbar.mhtml:218
/var/www/db/common/navbar.mhtml:49
/var/www/db/movies/autohandler:23
/var/www/db/autohandler:2
raw error






























Can't connect to sql server.  Reason: Too many connections at /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm line 172.


Trace begun at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t connect to sql server.  Reason: Too many connections at /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm line 172.^J') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm line 172
HKMDB::User::pp_db_connect at /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm line 185
HKMDB::User::ck_phpbb_group(undef, 7) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm line 304
HKMDB::User::is_admin('HKMDB::User=HASH(0x18a54a0)') called at /var/www/db/common/navbar.mhtml line 218
HTML::Mason::Commands::__ANON__('id', 12894, 'display_set', 'eng') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x18a50e0)', 'id', 12894, 'display_set', 'eng') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1302
eval {...} at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'id', 12894, 'display_set', 'eng') called at /var/www/db/common/navbar.mhtml line 49
HTML::Mason::Commands::__ANON__('mode', 'movie', 'id', 12894, 'display_set', 'eng') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x18a5180)', 'mode', 'movie', 'id', 12894, 'display_set', 'eng') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1302
eval {...} at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'mode', 'movie', 'id', 12894, 'display_set', 'eng') called at /var/www/db/movies/autohandler line 23
HTML::Mason::Commands::__ANON__('display_set', 'eng', 'image_id', 115337, 'id', 12894, 'image_id', 115337, 'display_set', 'eng', 'id', 12894) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x173cab0)', 'display_set', 'eng', 'image_id', 115337, 'id', 12894, 'image_id', 115337, 'display_set', 'eng', 'id', 12894) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1302
eval {...} at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'display_set', 'eng', 'image_id', 115337, 'id', 12894, 'image_id', 115337, 'display_set', 'eng', 'id', 12894) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x16757c0)', 'image_id', 115337, 'display_set', 'eng', 'id', 12894) called at /var/www/db/autohandler line 2
HTML::Mason::Commands::__ANON__('display_set', 'eng', 'image_id', 115337, 'id', 12894) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x173cd70)', 'display_set', 'eng', 'image_id', 115337, 'id', 12894) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1297
eval {...} at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'display_set', 'eng', 'image_id', 115337, 'id', 12894) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 481
eval {...} at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 481
eval {...} at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x16757c0)') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x16757c0)') called at /opt/perl-5.8.8/lib/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x1645580)', 'Apache2::RequestRec=SCALAR(0xce9360)') called at (eval 30) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0xce9360)') called at -e line 0
eval {...} at -e line 0