System error

error:  Failed connect to database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /var/www/research/mongolia/autohandler line 26.
context: 
... 
22:  </html>
23: 
24:  <%init>;
25:  # $dbh and $idbh are declared with 'allow_globals' parm in Mason config
26:  local $dbh ||= DBI->connect("DBI:mysql:processing center:localhost",
27:  "reader", "Botryllus") ||
28:  die("Failed connect to database: $DBI::errstr");
29:  local $idbh ||= DBI->connect("DBI:mysql:mongolia2002:localhost",
30:  "reader", "Botryllus") ||
... 
code stack:  /var/www/research/mongolia/autohandler:26
raw error






























Failed connect to database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /var/www/research/mongolia/autohandler line 26.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Failed connect to database: Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2) at /var/www/research/mongolia/autohandler line 26.^J') called at /var/www/research/mongolia/autohandler line 26
HTML::Mason::Commands::__ANON__('photo', '544ndp.jpg') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x63070ad31838)', 'photo', '544ndp.jpg') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'photo', '544ndp.jpg') called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x63070b1282b0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x63070b1282b0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x63070a6fcf18)', 'Apache2::RequestRec=SCALAR(0x63070a7060c8)') called at /etc/apache2/MasonHandlers/Mongolia.pm line 43
MasonHandlers::Mongolia::handler('Apache2::RequestRec=SCALAR(0x63070a7060c8)') called at -e line 0
eval {...} at -e line 0