Which version of MySQL are you running? The last release of Net::MySQL was over three years ago, I've never used it (though I've used DBD::MySQL). Try adding debugging in your constructor:
my $mysql = Net::MySQL->new( hostname => 'testscript', database => 'test', user => 'tester', password => 'tester', debug => 1 );
Super search shows that people are having problem with this module, looking at some of those issues may be worth while.
Update: Also look to see if any of the reported bugs for Net::MySQL are relevant.
Martin
In reply to Re: NET:MySQL database connection error -- (Using password: NO) at MySQL_queryDB.pl
by marto
in thread NET:MySQL database connection error -- (Using password: NO) at MySQL_queryDB.pl
by sqspat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |