This is necessary when running puppet as root using sudo because mysql will still look in the user's home directory in that case unless told otherwise.