mysqldump is not working in cron

前端 未结 1 1003
走了就别回头了
走了就别回头了 2020-12-22 11:44

First, I created .my.cnf in /home/username/ with the following text:

[client] user = sample_user password = sample_password host = localhost

相关标签:
1条回答
  • 2020-12-22 12:01

    You need to escape the percent sign (%), as it has a special meaning in crontab entries, use \% instead.

    0 讨论(0)
提交回复
热议问题