|
From: Jamie M. <ja...@mc...> - 2006-08-14 19:43:20
|
OK, so DBD::mysql doesn't install... there are about a million
reasons that could happen.
One is that it wants to connect to a DB at localhost with no
password. You may not have a DB running at localhost; it may not
allow root connections; it may want a password for root connections.
If you find that 'mysql -u root -h localhost' works for you from a
root shell, check to see if you have a ~/.my.cnf file that specifies
a password you've forgotten about.
Do a
mysql> select * from mysql.user where User=3D'root';
and see if a passworded entry pops up. I just checked on one of my
home test boxes, and doing
mysql> update mysql.user set Password=3D'' where User=3D'root' and
Host=3D'localhost';
mysql> flush privileges;
switched my 'make test' for DBD::mysql from
Failed 20/22 test scripts. 428/434 subtests failed.
to
All tests successful, 1 test skipped.
Of course I reset the password back the way it was, afterwards!
If that's your issue, feel free to try that.
If the DB you want to use for testing is on a different host, or you
want to test with a different user or specify a password etc., try
cpan> look DBD::mysql
# perl Makefile.PL --usage
# perl Makefile.PL --testcustomargs=3Dfoobar
# make && make test && make install
If you just want to skip DBD::mysql's tests altogether, try
cpan> force install DBD::mysql
--=20
Jamie McCarthy
http://mccarthy.vg/
ja...@mc...
|