Encountered this issue while using puppet. Created configuration file /root/.my.cnf but mysql was looking for /home/vagrant/.my.cnf Passing -H to sudo causes sudo to set env HOME=/root/
Encountered this issue while using puppet. Created configuration file /root/.my.cnf but mysql was looking for /home/vagrant/.my.cnf Passing -H to sudo causes sudo to set env HOME=/root/