System error
| error: |
Cannot connect Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/prfdb/prfdb_test/autohandler line 65.
|
| context: |
| ... |
|
| 61: |
</html> |
| 62: |
% } |
| 63: |
|
| 64: |
<%init> |
| 65: |
local $dbh = DBI->connect('DBI:mysql:prfdb_test:localhost', $config->{database_user}, $config->{database_pass}) or die "Cannot connect $DBI::errstr"; |
| 66: |
my $session = $m->session; |
| 67: |
my $path = ''; |
| 68: |
my $columns = 9; |
| 69: |
my $col_width = 11; |
| ... |
|
|
| code stack: |
/usr/local/prfdb/prfdb_test/autohandler:65
|
raw error
Cannot connect Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/prfdb/prfdb_test/autohandler line 65.
Trace begun at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Cannot connect Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2) at /usr/local/prfdb/prfdb_test/autohandler line 65.^J') called at /usr/local/prfdb/prfdb_test/autohandler line 65
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xd396c2c)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1279
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 473
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 473
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('MasonX::Request::WithApacheSession=HASH(0xb7b5cbc)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('MasonX::Request::WithApacheSession=HASH(0xb7b5cbc)') called at /usr/lib/perl5/site_perl/5.8.8/MasonX/Request/WithApacheSession.pm line 130
MasonX::Request::WithApacheSession::exec('MasonX::Request::WithApacheSession=HASH(0xb7b5cbc)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xb7b5e30)', 'Apache2::RequestRec=SCALAR(0xabf73a0)') called at /usr/local/prfdb/prfdb_test/handler.pl line 48
eval {...} at /usr/local/prfdb/prfdb_test/handler.pl line 48
PRFdb::Handler::handler('Apache2::RequestRec=SCALAR(0xabf73a0)') called at -e line 0
eval {...} at -e line 0