dbi-users  

Re: Cant connect to mysql database !

m. allan noah
Wed, 20 Jan 2010 08:27:38 -0800

I think you mean DBI->connect(, not DBI::connect->(

allan

On Wed, Jan 20, 2010 at 5:56 AM, Pooja Sohni <pso...@google.com> wrote:
> Can't connect to data source '' because I can't work out what driver
> to use (it
> doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env
> var is not
>  set) at reportdw.pl line 463
>
> Below is my db connection string format :
>
> use DBI;
> my $mysqlDbh = DBI::connect->
> ("dbi:mysql:dbname:hostname","username","password") or die
> ($DBI::errstr);
>
> Can anyone help me on this.
>
> Thanks
> Pooja
>
>



-- 
"The truth is an offense, but not a sin"