Quantcast
Viewing all articles
Browse latest Browse all 7239

How does CRON job set MySQL environment variables (1 reply)

What environment variables do I need to set in my cron job, so that the ~/.my.cnf settings can be found?

I have a bash shell that executes mysql -e commands just fine interactively, but requires username and password added when run from cron. I'd like to avoid having to do this.

Viewing all articles
Browse latest Browse all 7239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>