log parameter on mysqld section shouldn't be read by xtrabackup
Bug #1347698 reported by
Miguel Angel Nieto
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Low
|
Sergei Glushchenko | ||
2.0 |
Won't Fix
|
Undecided
|
Unassigned | ||
2.1 |
Fix Released
|
Low
|
Sergei Glushchenko | ||
2.2 |
Fix Released
|
Low
|
Sergei Glushchenko |
Bug Description
Tested with 2.0.7.
If there is a "log" parameter in my.cnf, xtrabackup will read it and the backup will fail:
xtrabackup_55: ambiguous option '--log=
innobackupex: fatal error: no 'mysqld' group in MySQL options
log is deprecated, but it can still be used, so we should support it.
Related branches
lp:~sergei.glushchenko/percona-xtrabackup/2.2-xb-bug1347698
- Alexey Kopytov (community): Approve
-
Diff: 56 lines (+27/-0)2 files modifiedstorage/innobase/xtrabackup/src/xtrabackup.cc (+8/-0)
storage/innobase/xtrabackup/test/t/bug1347698.sh (+19/-0)
lp:~sergei.glushchenko/percona-xtrabackup/2.1-xb-bug1347698
- Alexey Kopytov (community): Approve
-
Diff: 66 lines (+28/-1)3 files modifiedsrc/xtrabackup.cc (+8/-0)
test/t/bug1347698.sh (+19/-0)
test/t/bug884737.sh (+1/-1)
Verified with PS 5.5.38 and Xtrabackup 2.0, 2.1 and 2.2 versions. I can able to start MySQL with --log option in my.cnf which was not possible with PS 5.6
For 2.0, getting this error.
/home/nilnandan /Downloads/ percona- xtrabackup- 2.0.7/bin/ xtrabackup: ambiguous option '--log= /var/log/ mysql/mysql. log' (log-copy-interval, log-stream) Dell-XPS: /home/nilnandan /Downloads/ percona- xtrabackup- 2.0.7/bin#
innobackupex: fatal error: no 'mysqld' group in MySQL options
root@nilnandan-
For 2.1 and 2.2, getting this,
Unknown suffix '/' used for variable 'log-copy-interval' (value '/var/log/ mysql/mysql. log') mysql/mysql. log' to 'log-copy-interval' innobackupex line 4397.
xtrabackup: Error while setting value '/var/log/
innobackupex: Error: no 'mysqld' group in MySQL options at /usr/bin/