mysqldump doesn't work in crontab

前端 未结 9 2138
我寻月下人不归
我寻月下人不归 2020-12-08 21:26

I\'m trying to add a cronjob in the crontab (ubuntu server) that backups the mysql db.

Executing the script in the terminal as root works well, but inserted in the c

9条回答
  •  醉酒成梦
    2020-12-08 21:48

    You might also need to restart the service to load any of your changes.

    service cron restart
    

    or

    /etc/init.d/cron restart
    

提交回复
热议问题