[xtrabackup] category has precedence over [client]

Bug #1655283 reported by Shahriyar Rzayev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.4
Invalid
Medium
Unassigned

Bug Description

Testing PR -> https://github.com/percona/percona-xtrabackup/pull/304
Testing branch -> gl-sergei:2.4-xb-bug1551706

As described here:

https://github.com/percona/percona-xtrabackup/pull/303

client options to be read from [client]' and[xtrabackup]' sections -> assuming it means Client options will be read from [client] first, then [xtrabackup]

If you specify user info as:

[client]
user = root
password = msandbox

[mysqld]
user = sh
port = 5632

[xtrabackup]
user=msandbox
password=msandbox

The backup command:

sudo ./xtrabackup --defaults-file=/home/sh/sandboxes/msb_5_6_32/my.sandbox.cnf --backup --datadir=/home/sh/sandboxes/msb_5_6_32/data/ --target-dir=/home/backup_dir/full/ --no-version-check
170110 13:32:47 Connecting to MySQL server host: localhost, user: msandbox, password: set, port: 5632, socket: /tmp/mysql_sandbox5632.sock

The result -> The user 'msandbox' is under [xtrabackup], so it is reading [xtrabackup] options first.

Tags: qa
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

As it have been discussed, neither [xtrabackup] nor [client] has precedence. This behaviour derived from mysql client that parameters are scanned in the same order as they go in my.cnf.

xtrabackup picks up the last one.

In case of:

[xtrabackup]
user=xtrabackup

[client]
user=mysql

xtrabackup picks up `user=mysql'.

In case of:

[client]
user=mysql

[xtrabackup]
user=xtrabackup

xtrabackup picks up `user=xtrabackup'.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-778

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.