System error

error:  Unable to connect: Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
context: 
... 
288:  $r->content_type("text/html; charset=utf-8");
289: 
290:  #connect to db;
291:  #via socket:
292:  $dbh = DBI->connect("dbi:mysql:announce",$mysqluser, $password) || die "Unable to connect: $DBI::errstr\n";
293:  # $dbh = DBI->connect($mysqluser, $password) || die "Unable to connect: $DBI::errstr\n";
294: 
295:  #session ids:
296:  #use Apache2::Cookie;
... 
code stack:  /usr/local/www/gro.tgnilk/autohandler:292
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 292
HTML::Mason::Commands::__ANON__('bettercolors', 'true', 'sid', 3047757592031957) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x55fec70af5c8)', 'bettercolors', 'true', 'sid', 3047757592031957) 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, 'bettercolors', 'true', 'sid', 3047757592031957) 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(0x55fec5543818)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x55fec5543818)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x55fec659e798)', 'Apache2::RequestRec=SCALAR(0x55fec5678910)') called at (eval 24) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x55fec5678910)') called at -e line 0
eval {...} at -e line 0