Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Got a problem with a mysql server installation on Debian. (Not my server so I have no idea what caused this...)

Installing new applications that add a database fail with error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I can log in with the user, I've flushed permissions...

Then I can across this question: http://stackoverflow.com/questions/1709078/how-can-i-restore-the-mysql-root-users-full-privileges

But when I try to stop mysql, it fails with

error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'

share|improve this question

1 Answer 1

Debian use debian-sys-maint account for management (start/stop etc.). Credentials are stored in /etc/mysql/debian.cnf - check if all are valid.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.