dbi-users  

Cant connect to mysql database !

Pooja Sohni
Wed, 20 Jan 2010 08:24:53 -0800

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