System error

error:  cannot connect to dbi:mysql:AAP at /usr/local/lib/site_perl/DataControl.pm line 149.
context: 
... 
145:  my $userName = $dbData{ $dbName }[1];
146:  my $password = $dbData{ $dbName }[2];
147: 
148: 
149:  $dbh = DBI->connect( $dataSource, $userName, $password ) or die "cannot connect to $dataSource";
150:  return $dbh;
151:  }
152: 
153:  #-----------------------------------------------------------
... 
code stack:  /usr/local/lib/site_perl/DataControl.pm:149
/home/jim/SANDBOX/AAP/autohandler:91
raw error






























cannot connect to dbi:mysql:AAP at /usr/local/lib/site_perl/DataControl.pm line 149.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('cannot connect to dbi:mysql:AAP at /usr/local/lib/site_perl/DataControl.pm line 149.^J') called at /usr/local/lib/site_perl/DataControl.pm line 149
DataControl::connectToDB('DataControl', 'aap') called at /home/jim/SANDBOX/AAP/autohandler line 91
HTML::Mason::Commands::__ANON__('mftr', 'Crathco', 'model', 'Mini E27 and E47', 'part', '9 Liter Mini Bowl Spray Tube') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x557c0fcfb780)', 'mftr', 'Crathco', 'model', 'Mini E27 and E47', 'part', '9 Liter Mini Bowl Spray Tube') 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, 'mftr', 'Crathco', 'model', 'Mini E27 and E47', 'part', '9 Liter Mini Bowl Spray Tube') 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(0x557c103ce6c0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x557c103ce6c0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x557c0db99858)', 'Apache2::RequestRec=SCALAR(0x557c1037a8f8)') called at (eval 26) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x557c1037a8f8)') called at -e line 0
eval {...} at -e line 0