[xtrabackup] category has precedence over [client]
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:/
Testing branch -> gl-sergei:2.4-xb-bug1551706
As described here:
https:/
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-
170110 13:32:47 Connecting to MySQL server host: localhost, user: msandbox, password: set, port: 5632, socket: /tmp/mysql_
The result -> The user 'msandbox' is under [xtrabackup], so it is reading [xtrabackup] options first.
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'.