Google: debian-sys-maint neues Passwort setzen 1.Treffer: mysql --user root --passwordmysql> SET PASSWORD FOR 'debian-sys-maint'@'localhost' = PASSWORD('geheimes-passwort');
mysql> FLUSH PRIVILEGES; Hoffe es klappt. Gruß Andreas ------ Originalnachricht ------ Von: "Manfred Rebentisch" <debianlist@comparat.de> An: "Debian User German" <debian-user-german@lists.debian.org> Gesendet: 28.07.2017 10:42:15 Betreff: debian-sys-maint Passwort (mysql/mariadb)
Moin Liste! Ich habe auf einem Server debian 9 installiert und dazu mariadb. Aus irgendeinem Grund hatte ich in /etc/mysql/debian.cnf das Passwort von debian-sys-maint gelöscht und ersetzt. Das "DO NOT TOUCH" hatte ich einfach ignoriert. Nun hatte ich alle möglichen Recherchen gemacht und versucht, das neue Passwort korrekt zu etablieren. Aber es ist nicht ganz gelungen. Ich kann mit mysql -u debian-sys-maint -p mysql eine Konsole bekommen. Aber der Befehl mysqladmin --defaults-file=/etc/mysql/debian.cnf processlist liefert den Fehler: mysqladmin: connect to server at localhost failed error: Access denied for user debian-sys-maint@localhost (using password: YES) Auch der tägliche Cronjob meldet: /etc/cron.daily/logrotate: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)' error: error running shared postrotate script for '/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log ' run-parts: /etc/cron.daily/logrotate exited with return code 1 Ich habe folgende SQL Befehle abgesetzt: GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@localhost IDENTIFIED BY 'xxxxx' WITH GRANT OPTION; UPDATE USER SET authentication_string=password('xxxxx') WHERE User='debian-sys-maint'; FLUSH PRIVILEGES;Was kann ich noch tun, damit es mit dem neuen Passwort wieder funktioniert?Vielen Dank für eure Zeit! Manfred -- Manfred Rebentisch
Attachment:
smime.p7s
Description: S/MIME cryptographic signature