I'm using Zentyal (formerly EBox) as my home gateway/server, to evaluate it for possible use in a local organization. I wanted to change the root MySQL password, which I did, and mistakenly changed the password in the Zentyal
/var/lib/zentyal/conf folder to match it. So I changed the Zentyal password back to what it was, but the problem is, when I edited that file using
nano it must have added a newline character or something, because now the Perl script that retrieves the password (which uses
cat to retrieve it from the file) is causing a MySQL access denied error. Yet when I hardcode the password in the Perl db connect function, it works like a charm.
nano -L to edit the file, as well as an
echo > to output the password to the file, and no luck with either. What is causing the problem when the Perl script does a
cat to get the password?