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

web development Add comments

I’m doing bing changes in my servers, and moving some mysql data stores (/var/lib/mysql/*) I’ve found the following errors on debian:

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

That’s because debian has a mysql account for switching on/off and checking mysql status, and mysql password for that user “debian-sys-maint” should be the same stored in /etc/mysql/debian.cnf

Using your root user ony mysql you can chage the password to make it match this way:

sh# mysql -u root -p

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘debian-sys-maint’@'localhost’ IDENTIFIED BY ‘<<<password>>>’ WITH GRANT OPTION;


Query OK, 0 rows affected (0.00 sec)

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in
Close
E-mail It
Web optimizada por Optimizacion Web (plugin wordpress v.1.0.1).