Re: Help for a DBI newbie
Paul DuBois <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <p06230967bfbf9c18735a@[192.168.1.35]> |
At 20:31 +0000 12/9/05, Mike Burbey 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.
You want DBI->connect(), not DBI->().
--
Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
MySQL AB, www.mysql.com
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/[email protected]