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:mi...@guam.net                            
 mailto:msetze...@gmail.com
 mailto:msetze...@gmx.com
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+


--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to