Won't Do
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Labels
Components
Affects versions
Priority
Low
Details
Details
Assignee
Unassigned
UnassignedReporter
lpjirasync
lpjirasync(Deactivated)Labels
Components
Affects versions
Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created January 24, 2018 at 11:43 AM
Updated March 6, 2024 at 1:42 PM
Resolved April 22, 2020 at 3:57 PM
**Reported in Launchpad by Danila Vershinin last update 19-12-2017 08:38:34
On CentOS 7 machine with Percona-Server-server-56.x86_64 (5.6.37-rel82.2.el7):
With "log-warnings=2" in my.cnf my error log always includes:
[Warning] Access denied for user 'root'@'localhost' (using password: NO)
The warning entry above is emitted upon every start / restart of MySQL service.
I've traced it down to ping check inside /usr/bin/mysql-systemd (post function).
It seems that mysqladmin (inside that script) doesn't resolve ~/.my.cnf properly (I have credentials for root user stored there).
When supplied HOME variable as "/root" everything works, but I have to override systemctl unit file to do the job as seen here: https://www.getpagespeed.com/monitoring/mysql/mysqltuner-fix-reduce-eliminate-unclosed-connections-network-issues