Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Automysqlbackup-无法打开所需的默认文件:/etc/mysql/debian.cnf_Mysql_Ubuntu_Debian_Mysql Backup - Fatal编程技术网

Automysqlbackup-无法打开所需的默认文件:/etc/mysql/debian.cnf

Automysqlbackup-无法打开所需的默认文件:/etc/mysql/debian.cnf,mysql,ubuntu,debian,mysql-backup,Mysql,Ubuntu,Debian,Mysql Backup,试图在Ubuntu上安装AutoMySQLBackup sudoapt获得更新 sudo易于升级 apt get安装automysqlbackup 我得到以下错误: Setting up automysqlbackup (2.6+debian.3-1ubuntu1) ... Could not open required defaults file: /etc/mysql/debian.cnf Fatal error in defaults handling. Program aborted P

试图在Ubuntu上安装AutoMySQLBackup

  • sudoapt获得更新
  • sudo易于升级
  • apt get安装automysqlbackup
  • 我得到以下错误:

    Setting up automysqlbackup (2.6+debian.3-1ubuntu1) ...
    Could not open required defaults file: /etc/mysql/debian.cnf
    Fatal error in defaults handling. Program aborted
    Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
    Processing triggers for ufw (0.34~rc-0ubuntu2) ...
    Processing triggers for ureadahead (0.100.0-16) ...
    

    当我进入以下目录/etc/mysql/时,我没有看到debian.cnf。有我丢失的包裹吗

    它看起来像以下之一:

    • 此服务器上没有MySQL服务器
    • 在这台服务器上有一些自定义的MySQL版本(手工编译或安装,或其他一些版本,如PerconaSever等),并且这个目录/文件不是在MySQL服务器安装期间创建的
    也许您可以手动创建此文件并安装automysqlbackup,但此工具(automysqlbackup)使用/etc/mysql/debian.conf中的数据访问mysql并创建备份,因此您需要完成此文件或以其他方式配置automysqlbackup

    顺便说一句,请考虑安装automysqlbackup 3.0,例如从其中一个分支:这不像“从repo安装”那么简单,但是这个版本提供了比2.6版本更好的配置可能性,您可以使用多核(pigz代替gzip进行压缩)等