Aug 08
Access denied for user ‘debian-sys-maint’@'localhost’ (using password: YES)
web development No 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)

Recent Comments