Project

General

Profile

how to stop mysqld in crontab

Added by mahe 123 almost 12 years ago

how to stop mysqld in crontab -e which script i can use give me any suggestions..........
plz help me........


Replies (1)

RE: how to stop mysqld in crontab - Added by Ron Salvatore Koss almost 12 years ago

mysqld is not run by crontab. instead, it is run by ... init.d

if you want to stop mysql ( I mean really stop the service) you should do the following on the command line:

/etc/init.d/mysqld stop

if you want mysqld not to be started after booting you have to tell the system like so:

chkconfig mysql off

this will prevent mysqld to be started in any runlevel.

There are scripts run by crontab to "clean up" the database. if you want to deactivate some scripts that are run by crontab just put a "#" in front of the crontab line (comment it out), like so:

#2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl

This crontab is now deactivated.

be sure, you know for yourself what you try to achieve.

    (1-1/1)
    Go to top