MySQL Forums
Forum List  »  Security

Re: Access rights vs. batch process
Posted by: Tom Kovar
Date: May 27, 2007 07:05AM

Got it, sorry for bothering.
"mysqladmin" relies on the $HOME environment variable. If it is not set, it does not fetch the proper value from /etc/passwd, thus it cannot find the ~/.my.cnf file. Running the command with "env HOME=/root ..." helps.

Silly, but, well...

Maybe this helps, if somebody has a similar problem - no need to look for hours and try thousands variations and analyse source code... :-)

Options: ReplyQuote


Subject
Views
Written By
Posted
4415
May 27, 2007 06:30AM
Re: Access rights vs. batch process
2744
May 27, 2007 07:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.