List:General Discussion« Previous MessageNext Message »
From:Michael Palm Date:November 22 1999 5:33pm
Subject:DBI cannot connect
View as plain text  
I have been using mySQL for a while via C API and bin/mysql, but have
never used
perl before. I have the following:

use DBI
$dbh = DBI->connect("DBI:mysql:msp", "root", "<secret>") or die "bad
connect";

I always get bad connect. Database name, user and password are ones I
use for
bin/mysql. I have redhat 5 so didn't install latest DBI/DBD::mysql as it
needs libc6.
I am using mysql-DBI-perl-bin-1.825-1 from TcX and DBI matching this
version.
(I had some trouble finding matching DBI and mysql driver but it tells
you so I
think now its OK).

Hope someone can help.
thankyou

P.S. If answer is "you must download source and rebuild" please advise
where to find 
the right one.
Thread
DBI cannot connectMichael Palm22 Nov
  • Re: DBI cannot connectAndré Bjärby22 Nov