System error

error:  Unable to connect: Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
context: 
... 
252:  $r->content_type("text/html; charset=utf-8");
253: 
254:  #connect to db;
255:  #via socket:
256:  $dbh = DBI->connect("dbi:mysql:announce",$mysqluser, $password) || die "Unable to connect: $DBI::errstr\n";
257:  # $dbh = DBI->connect($mysqluser, $password) || die "Unable to connect: $DBI::errstr\n";
258: 
259:  #session ids:
260:  use Apache2::Cookie;
... 
code stack:  /usr/local/www/gro.tgnilk/autohandler:256
raw error






























Unable to connect: Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Unable to connect: Can\'t connect to local server through socket \'/run/mysqld/mysqld.sock\' (2)^J') called at /usr/local/www/gro.tgnilk/autohandler line 256
HTML::Mason::Commands::__ANON__('sid', 5793504773763214) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x5560da06a678)', 'sid', 5793504773763214) 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, 'sid', 5793504773763214) 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(0x5560da294230)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x5560da294230)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5560d89da188)', 'Apache2::RequestRec=SCALAR(0x5560da293d50)') called at (eval 24) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x5560da293d50)') called at -e line 0
eval {...} at -e line 0