Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: DBI Access Denied with blank password

by rodion (Chaplain)
on Apr 13, 2007 at 01:12 UTC ( [id://609803]=note: print w/replies, xml ) Need Help??


in reply to DBI Access Denied with blank password

From the MySQL documentation of access-denied
If you get the following error, it means that you are using an incorrect root password:

shell> mysqladmin -u root -pxxxx ver
Access denied for user 'root'@'localhost' (using password: YES)

If the preceding error occurs even when you have not specified a password, it means that you have an incorrect password listed in some option file. Try the --no-defaults option as described in the previous item.

Also note that it's somtimes necessary to include a specific entry for "localhost" in the authroiztion tables, even though there is a wild-card entry that you think should cover the "localhost" case. It has to do with precedence and interactcion between tables, I think, but I can't find the spot in the documentation that mentions it, from where I am right now.
  • Comment on Re: DBI Access Denied with blank password

Replies are listed 'Best First'.
Re^2: DBI Access Denied with blank password
by Grey_Magus (Initiate) on Apr 13, 2007 at 20:35 UTC
    Current testing suggests our problem is a Perl issue, as I've strayed from The Path and created a simple test case in a different language that is able to connect both as a user with and without a password.

    As an added clue, while I can connect to the database using the DBI and a user with a password, the user seems to time out doing select queries. It can do inserts and updates, but sending select statements seem to cause the connection to hang.

      Try a different driver (DBD)
        We tracked the problem down to Net::MySQL which is being used by our mysqlPP driver. Switching from Version 0.9 back to 0.8 'fixed' our problem, which seems related to the way in which the module handles older (this database is running the v4.1.10 of MySQL) databases.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://609803]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found