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:118
/var/www/db/users/login.mhtml:13
/var/www/db/common/authorize.mhtml:21
/var/www/db/images/edit/autohandler:75
/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(0x2097670)') called at /var/www/db/common/navbar.mhtml line 118
HTML::Mason::Commands::__ANON__('display_set', undef) 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(0x7f365a9a3100)', 'display_set', undef) 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, 'display_set', undef) called at /var/www/db/users/login.mhtml line 13
HTML::Mason::Commands::__ANON__('error_message', 'You must be logged in to view this page.', 'destination', '/db/images/edit/list.mhtml?caller_mode=movie&caller_id=40491&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(0x20957a0)', 'error_message', 'You must be logged in to view this page.', 'destination', '/db/images/edit/list.mhtml?caller_mode=movie&caller_id=40491&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, 'error_message', 'You must be logged in to view this page.', 'destination', '/db/images/edit/list.mhtml?caller_mode=movie&caller_id=40491&display_set=eng') called at /var/www/db/common/authorize.mhtml line 21
HTML::Mason::Commands::__ANON__('allow', 'ARRAY(0x7f365a9a4080)') 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(0x7f365a9a6a60)', 'allow', 'ARRAY(0x7f365a9a4080)') 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, 'allow', 'ARRAY(0x7f365a9a4080)') called at /var/www/db/images/edit/autohandler line 75
HTML::Mason::Commands::__ANON__('caller_id', 40491, 'caller_mode', 'movie', 'display_set', 'eng', 'caller_mode', 'movie', 'caller_id', 40491, '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(0x7f365a98c7e0)', 'caller_id', 40491, 'caller_mode', 'movie', 'display_set', 'eng', 'caller_mode', 'movie', 'caller_id', 40491, '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, undef, 'caller_id', 40491, 'caller_mode', 'movie', 'display_set', 'eng', 'caller_mode', 'movie', 'caller_id', 40491, 'display_set', 'eng') 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(0x1674fb0)', 'caller_mode', 'movie', 'caller_id', 40491, 'display_set', 'eng') called at /var/www/db/autohandler line 2
HTML::Mason::Commands::__ANON__('caller_id', 40491, 'caller_mode', 'movie', '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(0x7f365a988fb0)', 'caller_id', 40491, 'caller_mode', 'movie', 'display_set', 'eng') 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, 'caller_id', 40491, 'caller_mode', 'movie', 'display_set', 'eng') 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(0x1674fb0)') 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(0x1674fb0)') 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(0x1645570)', 'Apache2::RequestRec=SCALAR(0x162f530)') called at (eval 30) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x162f530)') called at -e line 0
eval {...} at -e line 0