MySQL stopped asking for passwords

Posted by BlaM on Server Fault See other posts from Server Fault or by BlaM
Published on 2011-06-25T15:15:18Z Indexed on 2011/06/25 16:23 UTC
Read the original article Hit count: 210

Filed under:
|

I'm currently experiencing a weird problem with one of my MySQL database servers:

It stopped asking for passwords when I try to access the database from local with the mysql command line tool.

I need a valid admin username. I also still need a password for remote access (i.e. from another IP). And I need a password when I - for example - access the database from a PHP script. But when I try to access the database from local host/commandline it will let me straight in to the data with my administrative users.

They (admin users) have passwords set - and as I mentioned - I still need to specify those when I try to access the data via PHP.

Changing the password didn't help.

Non-Administrative users need to specify their passwort, but that doesn't really help if they can get anywhere with "mysql -u root" (or another admin user account name).

(System Debian Linux Lenny, MySQL 5.0.51a)

Any ideas? Anything that explains this behaviour? I don't understand how this can happen.

© Server Fault or respective owner

Related posts about mysql

Related posts about password