Welcome to WebmasterWorld Guest from 54.147.44.13

Forum Moderators: open

Message Too Old, No Replies

mysql cron job

how

     
7:59 am on Nov 23, 2009 (gmt 0)

Full Member

5+ Year Member

joined:Dec 12, 2007
posts:233
votes: 0


dear,
I would like mysql server perfom backups every day at noon.

How do I configure that offline on my computer? Is that possible for a hosted database too (for my hosted website)
kind regards

6:50 pm on Nov 23, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member whoisgregg is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 9, 2003
posts:3416
votes: 0


As far as I know, MySQL doesn't have built-in cron jobs. If you are on a *nix type system, look into the "crontab" program to schedule tasks.

For web hosting, you have to check with them to see if they support that. Most hosting control panels have a section just for cron jobs and it's pretty easy to configure them (once you know what command you want to run).

9:52 am on Dec 2, 2009 (gmt 0)

New User

5+ Year Member

joined:Dec 2, 2009
posts: 4
votes: 0


I would like to know how to do this aswell, i would like a dump of the database to be emailed to be once per day. Any ideas?
12:02 pm on Dec 5, 2009 (gmt 0)

Full Member

5+ Year Member

joined:Dec 12, 2007
posts:233
votes: 0


hi,
I am on windows NT and i run mysql 5.1.33. I really dont know how to see if there is that cron job option. By the way, assuming the cron job on my windows machine is possible, can that cron job be executed when i am off my work and the computer turned off?
regards.
8:53 pm on Dec 15, 2009 (gmt 0)

New User

5+ Year Member

joined:Dec 15, 2009
posts:2
votes: 0


There are other options, folks.

There's a number of online cron replacement services out there. If you're on free web hosting and don't have access to cron, or are on a local machine but don't want to leave it on all the time, this is a GREAT option.

[edited by: tedster at 9:56 pm (utc) on Dec. 15, 2009]