Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7248

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

$
0
0
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 7248

Latest Images

Trending Articles



Latest Images

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