XtraBackup on MultiInstance server connects to default instance for slave info
Bug #1021954 reported by
Will Gunty
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
1.6 |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
2.0 |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
2.1 |
Fix Released
|
Medium
|
Hrvoje Matijakovic |
Bug Description
I am running a server with 6 instances on it. I created a my.cnf that contained only the one instance I wished to copy.
However, the binlog info when running a stream with --slave-info are from the first instance (which has a socket that is linked to at /var/lib/
Here is the command I am using:
sudo innobackupex --stream=tar /tmp/ --defaults-
It appears that the correct data files are copied over, just the wrong master info is given.
Related branches
lp://staging/~hrvojem/percona-xtrabackup/bug1021954-1.6
- Stewart Smith (community): Approve
-
Diff: 320 lines (+70/-148)5 files modified.bzrignore (+1/-0)
doc/Makefile (+13/-0)
doc/source/innobackupex/privileges.rst (+4/-1)
doc/source/percona-theme/layout.html (+50/-146)
doc/source/percona-theme/static/percona.com.css (+2/-1)
An addition to this. It appears that it is trying to connect *only* to /var/lib/ mysql/mysql. sock for connections.
I just removed the file (a link to the first instance's socket) and got this error:
120706 15:04:23 innobackupex: Starting mysql with options: --defaults- file='/ tmp/instance03. cnf' --password=xxxxxxxx --user='<user>' --unbuffered --120706 15:04:23 innobackupex: Connected to database with mysql child process (pid=23948) mysql/mysql. sock' (2)
innobackupex: Error: mysql child process has died: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/
This socket is not specified anywhere in the global my.cnf, or the cnf in the --defaults-file directive