image
image

|


Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old November 4th, 2001, 01:44 AM
Registered User
 
Join Date: Jul 2001
Location: Sydney, Australia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
aussieron is on a distinguished road
mysqldump and cron

Has anyone got a cron job using mysqldump working? I'm trying to redirect output from mysqldump to backup my databases in a shell script. The commands in the script and the script itself work fine when invoked from the shell, but when I run it as a cron job I just get zero length files where the database backups should be. I've tried lots of angles on this and have yet to get mysqldump to produce anything when run under cron.
Thanks for any advice you might have.
Reply With Quote
  #2  
Old November 6th, 2001, 12:27 PM
Registered User
 
Join Date: Nov 2001
Location: France
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
jojo is on a distinguished road
Re: mysqldump and cron

put your mysqldump code in a file with execution right and verify to execute youre cron job as an allowed mysql user.
Reply With Quote
  #3  
Old November 6th, 2001, 04:45 PM
Registered User
 
Join Date: Jul 2001
Location: Sydney, Australia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
aussieron is on a distinguished road
The problem turned out to be the crontab setting the PATH variable so that it didn't include a path to mysqldump. I was using cronnix to manipulate the crontab and just didn't realise what else was happening at the start of the crontab. Invoking mysqldump with the full path to it got everything working as expected.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 03:27 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.