Posted on 2009-07-10 11:25:39-07 by wgravier
Weird behavior of DBI, I need help
Hello everybody, Thank you in advance for helping me fixing my problem. Actually, I've installed a DBD-mysql module (version 4.005) manually by modifying the dpd xml file and downloading the package from http://theoryx5.uwinnipeg.ca. Well, everything spend well but my script ddidn't execute, no error message, nothing... So, I tried to put a print in my script and always nothing... Next, I've erased all my code and just put a print and the line
$dbh = DBI->connect("DBI:mysql:database=$base;host=$host",$utilisateur,$motdepasse) || die ("can't +connect");
Always nothing... However when I've put away this line (
$dbh = DBI->connect...
), my print command appear. So, I suppose the source of my problem is the DBD-mysql module but I don't know why. Is anyone can help me ? The version of my DBI module is 1.607. Regards.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.