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

"Todd W" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <003b01c74069$3c569740$6801a8c0@trwlapgateway>
From: "Dave Baker" <davebaker-G6Ux/[email protected]>


> Todd W <trwww@...> 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'
...
t/10-mysql...............ok
...

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

$ MYSQL_PWD=mysqlpass mysql -uroot

Todd W.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.