[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iODBC and MySQL



On Fri, Aug 23, 2002 at 06:17:12PM +1000, Scott Jardine wrote:
> Now, when I run a sample
> #!/usr/bin/perl
> 
> my $dsn = 'test';
> my $dbd  = 'DBI:ODBC';
> 
> use DBI;
> 
> $dbh = DBI->connect("$dbd:$dsn", "xxxx", "xxxx", { RaiseError => 1 });

The DBI man page says:

           The $data_source value should begin with ""dbi:"driver_name":"".
           The driver_name specifies the driver that will be used to make the
           connection. (Letter case is significant.)

Does lowercasing "dbi" in your assignment to $dbd help?

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: