We are now upgrading to a new SunOS 5.10 server, but attempting the run the same scripts to connect to the same MySQL server no longer works.
The user I'm using to connect to the database does not have a password. However, when I try to connect using this user from the new Solaris box with the same scripts, I get the following error:
DBI connect('database=production;host=SERVER;port=PORT','USER',...) failed: #28000Access denied for user 'USER'@'SERVERNAME.DOMAIN.com' (using password: YES) at /usr/local/lib/perl5/site_perl/5.8.7/DBD/mysqlPP.pm line 109
I find the '(using password: YES)' message somewhat troubling as I'm passing a blank password. Strangely, if I assign a password to this user, I can connect to it without error (assuming I update the script to connect using the new password, of course.)
I'm using Perl v5.8.7 built for sun4-solaris and DBI 1.54, which are both slighter newer than what is on the older box. In the hopes that this was a flaw in the newer DBI, I downgraded the module to the version we were using, but this gives the same results. I'm using DBD-mysqlPP v0.04 to connect to the database.
I went code diving to see if I could find a flaw in the way the module handles blank passwords, but I didn't see anything obvious.
At this point I remain uncertain if I have a Perl or a MySQL problem. And ideas?
In reply to DBI Access Denied with blank password by Grey_Magus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |