Re: Help for a DBI newbie
Greg Meckes <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
Just a stab but it's perhaps the path to perl? Maybe the CPAN module is installing it a different location that what you are calling from your script? --- Mike Burbey <[email protected]> wrote: > I am trying to connect to a mysql server running on the same PC that I > am running this script from. > > use strict; > use DBI; > > my $dbh = DBI->("DBD:mysql:database=FLS;host=localhost", "burbey", > "civic1", {'RaiseError' => 1}); > ------------------------------------------------------------------- > This is the error I receive when trying to run this 1 line of code: > Undefined subroutine &main::DBI called at testdb.pl line 4. > > Using CPAN this shows both the DBI and DBD:mysql modules are installed: > cpan> install DBI > CPAN: Storable loaded ok > Going to read /root/.cpan/Metadata > Database was generated on Fri, 09 Dec 2005 10:08:29 GMT > DBI is up to date. > cpan> install DBD::mysql > DBD::mysql is up to date. > > > > > -- > MySQL Perl Mailing List > For list archives: http://lists.mysql.com/perl > To unsubscribe: http://lists.mysql.com/[email protected] > > -- MySQL Perl Mailing List For list archives: http://lists.mysql.com/perl To unsubscribe: http://lists.mysql.com/[email protected]