Bug #13733 Cannot access Mysql through Perl i.e, using DBI->connect()
Submitted: 4 Oct 2005 8:44 Modified: 4 Oct 2005 9:21
Reporter: sridevi saralaya Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connectors: DBD::mysql ( Perl ) Severity:S3 (Non-critical)
Version:ver 11.18 distrib 3.23.58 for redhatlinu OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[4 Oct 2005 8:44] sridevi saralaya
Description:
In perl , for accessing SQL data, the code

#!/usr/bin/perl -w
use DBI;
my $d=DBI->connect(`DBI:mysql:test`,`root`,`kk`);

die "Cannot connect".DBI->errstr() unless $d;

print "Success Connected\n";

$d->disconnect();

when executed, gives the following error:

can't locate "DBI:mysql:test": No such file or directory 
can't loacate auto/DBI/CONNECT.al in @INC .

Note: ( the database test is existing in mysql)
I get the same error in both Linux and Windows.

How to repeat:
die "Cannot connect".DBI->errstr() unless $d;

print "Success Connected\n";

$d->disconnect();

when executed, gives the following error:

can't locate "DBI:mysql:test": No such file or directory 
can't loacate auto/DBI/CONNECT.al in @INC .

Note: ( the database test is existing in mysql)
I get the same error in both Linux and Windows.

Suggested fix:
I dont Know
[4 Oct 2005 9:21] Valeriy Kravchuk
We're sorry, but the bug system is not the appropriate forum for 
asking help on using MySQL products. Your problem is not the result 
of a bug.

Support on using our products is available both free in our forums
at http://forums.mysql.com and for a reasonable fee direct from our
skilled support engineers at http://www.mysql.com/support/

Thank you for your interest in MySQL.

Additional info:

Please note a separate category for DBD::mysql-related bugs.