[CDBI] Two MySQL tests failed during Class::DBIinstallation; how I fixed 'em

Todd W trwww at sbcglobal.net
Thu Jan 25 10:11:51 GMT 2007

From: "Dave Baker" <davebaker at benefitslink.com>

> Todd W <trwww at ...> writes:
>> Thats fine. There are also environment variables that you can set so you
>> dont have to modify the test files.
> Thanks! I couldn't find 'em in Makefile.PL. Can you elaborate for me?

Well its a mysql thing actually:

$ MYSQL_PWD=mysqlpass sudo perl -MCPAN -e 'test Class::DBI'

You just set the environment variable MYSQL_PWD and the mysql client will 
use it:

$ MYSQL_PWD=mysqlpass mysql -uroot

Todd W.

More information about the ClassDBI mailing list