MySQL Forums
Forum List  »  Perl

no database driver specified and DBI_DSN env var not set
Posted by: Jerin J
Date: March 24, 2008 04:04PM

I'm trying to connect to a mysql DB using perl. The following code gives me trouble:
$dbh = DBI->connect("DBI:/import/jrdba/mysql_pkg/5.0.37/bin/mysql:cov;host=cheery", "root", "");

When I run the perl script I get the error:
Can't connect(DBI:/import/jrdba/mysql_pkg/5.0.37/bin/mysql:jrcov;host=cheery root ), no database driver specified and DBI_DSN env var not set at ./report_coverage.pl line 103

Could someone help me out here, I'm a newbie.

Options: ReplyQuote


Subject
Written By
Posted
no database driver specified and DBI_DSN env var not set
March 24, 2008 04:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.