数据库备份失败,缺少DBName

450520925 2019-12-12 441

如图,请问这个问题如何解决。

最新回复 (7)
  • 虚竹 2019-12-12
    引用 2
    是MySQL应用里的吗?
  • 450520925 2019-12-12
    引用 3
    对的,我在里面创建了一个定时备份。隔天我就收到这种提示。
  • 虚竹 2019-12-12
    引用 4
    截图下你的备份设置,并给出文件 /etc/crontab 的内容。
  • 450520925 2019-12-12
    引用 5
    详细信息都已私聊发送到你qq
  • 450520925 2019-12-12
    引用 6
    暂时确定是加密密码含有特殊符号导致定时备份失败 提示缺少DBName 密码lCCkq@G%h~EZ=EOZ
  • 虚竹 2019-12-12
    引用 7

    这个特殊字符是%,去掉后就正常了。

    原因是在crontab文件中,%是特殊字符:

    man (5) crontab:
    
    Percent-signs (%) in the command, unless escaped with backslash (\), 
    will be changed into newline characters, and all data after the 
    first % will be sent to the command as standard input.
  • coldark 2020-4-14
    引用 8
    虚竹 这个特殊字符是%,去掉后就正常了。 原因是在crontab文件中,%是特殊字符: ``` man (5) crontab: Percent-signs (%) in the comma ...
    建议数据库的随机密码不使用特殊字符,目前还有这个bug
返回
发新帖