Worked fine with Fedora before 40, but now get message.
Line in /etc/logrotate.d/mariadb
/usr/bin/mariadb-admin $EXTRAPARAM --local flush-error-log \
flush-engine-log flush-general-log flush-slow-log
#OUTPUT
#/usr/bin/mariadb-admin: connect to server at 'localhost' failed
#error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Message would probable not be seen with regular lograte run?
Edit the file and add -u root -p(password) and it runs fine.
/usr/bin/mariadb-admin $EXTRAPARAM --local flush-error-log -u root -p*******\
flush-engine-log flush-general-log flush-slow-log
Don't like having password in files, so wondering if there is a
solution. Didn't see this with versions before 40 update.
Files in /etc/logrotate.d have
ls -l mariadb
-rw-r--r-- 1 root root 1702 Feb 7 10:00 mariadb
So, seems public would be able to look at file?
Thanks.
+------------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor (Retired)
mailto:mikes@guam.net
mailto:msetzerii@gmail.com
mailto:msetzerii@gmx.com
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+