当我尝试使用 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 服务器。而且我有足够的磁盘空间和内存。