mysql cron

rldev

Verified User
Joined
May 26, 2004
Messages
1,003
Can someone post a cron entry to properly stop and start mysql say once a day?
 
strange their is no restart on my RHE system. Just start and stop.
 
yes

/etc/init.d/service mysqld

but this doesn't work from cron:

/etc/init.d/service: No such file or directory

How do I execute the command?

I have:

0 */12 * * * /etc/init.d/service mysqld restart
 
I want to run it every 12 hours. The cron kicks back the following email when running:

/bin/sh: service: command not found

What's the problem?
 
Last edited:
Back
Top