System error

error:  DBI connect('ccd','ccduser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /var/www/mason/index.html line 522
context: 
... 
98:  # whether they should generate a full stack trace (confess() and cluck())
99:  # or simply report the caller's package (croak() and carp()), respectively.
100:  # confess() and croak() die, carp() and cluck() warn.
101: 
102:  sub croak { die shortmess @_ }
103:  sub confess { die longmess @_ }
104:  sub carp { warn shortmess @_ }
105:  sub cluck { warn longmess @_ }
106: 
... 
code stack:  /usr/share/perl/5.8/Carp.pm:102
/usr/lib/perl5/DBI.pm:637
/usr/lib/perl5/DBI.pm:689
/var/www/mason/index.html:522
raw error






























DBI connect('ccd','ccduser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /var/www/mason/index.html line 522


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('DBI connect(\'ccd\',\'ccduser\',...) failed: Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2) at /var/www/mason/index.html line 522^J') called at /usr/share/perl/5.8/Carp.pm line 102
Carp::croak('DBI connect(\'ccd\',\'ccduser\',...) failed: Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2)') called at /usr/lib/perl5/DBI.pm line 637
DBI::__ANON__(undef, undef) called at /usr/lib/perl5/DBI.pm line 689
DBI::connect('DBI', 'dbi:mysql:ccd', 'ccduser', 'jos234', 'HASH(0x8480400)') called at /var/www/mason/index.html line 522
HTML::Mason::Commands::__ANON__('_id', '26/90/86', '_type', 'group') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8b6992c)', '_id', '26/90/86', '_type', 'group') called at /usr/share/perl5/HTML/Mason/Request.pm line 1251
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, undef, '_id', '26/90/86', '_type', 'group') called at /usr/share/perl5/HTML/Mason/Request.pm line 460
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 460
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 412
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8909874)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8909874)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 832
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x86f15c4)', 'Apache2::RequestRec=SCALAR(0x86f1504)') called at (eval 32) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x86f1504)') called at -e line 0
eval {...} at -e line 0