This always fails for me, it has been a while since I delt with this, but I seem to remember that it fails that test because it is trying to access mysql as root with out a password. you probably have a password set for root. I just exit cpan and locate the build directory then:
make
make install
myself.
Mark