Ah! Yes!! Thank you very much!!

Problem fixed now =)


2008/7/22 Rob Dixon <[EMAIL PROTECTED]>:

>
> Panda-X wrote:
> >
> > I've got this error, anything I can do ?
> >
> >       "Can't locate auto/DBI/data_source.al in @INC "
> >
> > Code :
> >
> >    use DBI;
> >    my @dataSource = DBI -> data_source ( "mysql" ) ;
>
> The method call is
>
>  DBI->data_sources('mysql');
>
> > and if I change the as this :
> >
> >     use DBI;
> >     my $dbh = DBI -> connect ( "dbi:mysql", $adm, $pass ) ;
>
> the data source should look like
>
>  dbi:<drivername>:<database name>
>
> so
>
>  dbi:mysql:<database name>
>
> in your case.
>
> [snip]
>
> HTH,
>
> Rob
>

Reply via email to