We are trying to do a backup of Percona using XtraBackup on a instance that uses SSL. We are able to login simply by typing mysql
with the mysql user because the user has a .my.cnf with:
[client]
user="root"
password="our-password-here"
ssl-ca=/mysql/certs/ca-bundled.pem
However when we try and run the XtraBackup with:
innobackupex --defaults-file=~/.my.cnf --stream=tar ./ | gzip - > ~/mysql.backup.tar.gz
We are getting:
140527 15:35:59 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=~/.my.cnf;mysql_read_default_group=xtrabackup' (using password: NO).
innobackupex: Error: Failed to connect to MySQL server: DBI connect(';mysql_read_default_file=~/.my.cnf;mysql_read_default_group=xtrabackup','',...) failed: SSL connection error at /usr/bin/innobackupex line 2945