Percona Xtrabackup在备份期间失败

时间:2016-08-30 09:57:47

标签: mysql percona innobackupex

当我尝试使用Percona innobackupex执行备份时,我收到以下错误:

 george@db-pxc-1 [~] [17:50] sudo innobackupex --user=root  --password=secret --host=127.0.0.1  ~/Data
160830 17:50:34 innobackupex: Starting the backup operation

IMPORTANT: Please check that the backup run completes successfully.
           At the end of a successful backup run innobackupex
           prints "completed OK!".

160830 17:50:35  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;host=127.0.0.1;port=3306' as 'kkuser'  (using password: YES).
Failed to connect to MySQL server: DBI connect(';mysql_read_default_group=xtrabackup;host=127.0.0.1;port=3306','root',...) failed: Access denied for user 'root'@'127.0.0.1' (using password: YES) at - line 1314
160830 17:50:35 Connecting to MySQL server host: 127.0.0.1, user: root, password: set, port: 3306, socket: (null)
Failed to connect to MySQL server: Access denied for user 'root'@'127.0.0.1' (using password: YES).
george@db-pxc-1 [~] [17:50]

xtrabackup版本是:

george@db-pxc-1 [~] [17:58] xtrabackup --version
xtrabackup version 2.3.3 based on MySQL server 5.6.24 Linux (x86_64) (revision id: 525ca7d)

Perl版本:

george@db-pxc-1 [~] [18:03] perl -MDBD::mysql -e 'print $DBD::mysql::VERSION'
4.016

服务器正在运行Debian Squeeze。我一直在ubuntu机器上使用此命令来执行备份,之前从未遇到过问题。

MySQL不是PXC,而是普通的Percona服务器。我有足够的磁盘空间和内存。

1 个答案:

答案 0 :(得分:0)

innobackupex:与linux文件限制配置有关。

提高文件限制,然后重试

$ ulimit -n 999999