R rldev Verified User Joined May 26, 2004 Messages 1,003 Aug 30, 2006 #1 Can someone post a cron entry to properly stop and start mysql say once a day?
V vandal Verified User Joined Oct 22, 2003 Messages 522 Location Calgary, AB Aug 31, 2006 #2 on redhat systems simply: 0 * * * * /sbin/service mysql restart would restart it every hour.
R rldev Verified User Joined May 26, 2004 Messages 1,003 Aug 31, 2006 #3 strange their is no restart on my RHE system. Just start and stop.
V vandal Verified User Joined Oct 22, 2003 Messages 522 Location Calgary, AB Aug 31, 2006 #4 that is odd, you should have restart. what does "service mysql" from root output?
V vandal Verified User Joined Oct 22, 2003 Messages 522 Location Calgary, AB Aug 31, 2006 #6 service mysqld ?
R rldev Verified User Joined May 26, 2004 Messages 1,003 Sep 1, 2006 #7 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
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
M Mik3yZ Verified User Joined Mar 29, 2006 Messages 55 Location Eindhoven, The Netherlands Sep 1, 2006 #8 why the slash in front of 12? 0 * 12 * * * service mysqld restart or 0 * 12 * * * /etc/init.d/service mysqld restart
why the slash in front of 12? 0 * 12 * * * service mysqld restart or 0 * 12 * * * /etc/init.d/service mysqld restart
R rldev Verified User Joined May 26, 2004 Messages 1,003 Sep 1, 2006 #9 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: Sep 1, 2006
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?
S selfwebhosting Verified User Joined Jan 12, 2006 Messages 75 Location Canada Jun 22, 2007 #11 In my case it is... Code: /sbin/service mysqld restart I am using Fedora 4 OS.