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:298
/var/www/db/common/navbar.mhtml:81
/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, 6) called at /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux-thread-multi/HKMDB/User.pm line 298
HKMDB::User::is_editor('HKMDB::User=HASH(0x7ff3578f10a0)') called at /var/www/db/common/navbar.mhtml line 81
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(0x2b743b0)', '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=47585&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(0x7ff3578f0df0)', 'error_message', 'You must be logged in to view this page.', 'destination', '/db/images/edit/list.mhtml?caller_mode=movie&caller_id=47585&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=47585&display_set=eng') called at /var/www/db/common/authorize.mhtml line 21
HTML::Mason::Commands::__ANON__('allow', 'ARRAY(0x7ff3578ec4a0)') 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(0x7ff3578eb6b0)', 'allow', 'ARRAY(0x7ff3578ec4a0)') 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(0x7ff3578ec4a0)') called at /var/www/db/images/edit/autohandler line 75
HTML::Mason::Commands::__ANON__('caller_id', 47585, 'caller_mode', 'movie', 'display_set', 'eng', 'caller_mode', 'movie', 'caller_id', 47585, '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(0x2b9a370)', 'caller_id', 47585, 'caller_mode', 'movie', 'display_set', 'eng', 'caller_mode', 'movie', 'caller_id', 47585, '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', 47585, 'caller_mode', 'movie', 'display_set', 'eng', 'caller_mode', 'movie', 'caller_id', 47585, '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(0x293eaa0)', 'caller_mode', 'movie', 'caller_id', 47585, 'display_set', 'eng') called at /var/www/db/autohandler line 2
HTML::Mason::Commands::__ANON__('caller_id', 47585, '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(0x2a0bf60)', 'caller_id', 47585, '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', 47585, '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(0x293eaa0)') 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(0x293eaa0)') 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(0x2914690)', 'Apache2::RequestRec=SCALAR(0x1dd7c60)') called at (eval 30) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x1dd7c60)') called at -e line 0
eval {...} at -e line 0