innobackupex does not read user,password options from ~/.my.cnf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Low
|
Sergei Glushchenko | ||
2.2 |
Fix Released
|
Low
|
Hrvoje Matijakovic | ||
2.3 |
Fix Released
|
Low
|
Sergei Glushchenko |
Bug Description
# rpm -q percona-xtrabackup:
percona-
# uname -a
Linux localhost 2.6.18-308.24.1.el5 #1 SMP Wed Nov 21 11:42:14 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
I cannot seem to get innobackupex to read the username, password values set in ~/.my.cnf (/root/.my.cnf), in this case.
# cat /root/.my.cnf
[xtrabackup]
user=root
password=abc123
# whoami
root
[root@localhost]# /usr/bin/perl /usr/bin/
The backup dies with the following:
innobackupex: Error: mysql child process has died: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
If I change the /root/.my.cnf file to
[client]
user=root
password=abc123
it works, but I'd like it to obey the [xtrabackup] section, as the documentation suggests it does.
Related branches
- Stewart Smith (community): Approve
-
Diff: 293 lines (+54/-37)9 files modifieddoc/source/innobackupex/incremental_backups_innobackupex.rst (+9/-5)
doc/source/innobackupex/innobackupex_option_reference.rst (+3/-3)
doc/source/innobackupex/privileges.rst (+4/-1)
doc/source/installation/compiling_xtrabackup.rst (+5/-5)
doc/source/percona-theme/layout.html (+13/-15)
doc/source/percona-theme/static/percona.com.css (+3/-3)
doc/source/xtrabackup_bin/choosing_binary.rst (+7/-1)
doc/source/xtrabackup_bin/incremental_backups.rst (+5/-1)
innobackupex (+5/-3)
- Stewart Smith (community): Approve
-
Diff: 300 lines (+54/-37)9 files modifieddoc/source/innobackupex/incremental_backups_innobackupex.rst (+9/-5)
doc/source/innobackupex/innobackupex_option_reference.rst (+3/-3)
doc/source/innobackupex/privileges.rst (+4/-1)
doc/source/installation/compiling_xtrabackup.rst (+5/-5)
doc/source/percona-theme/layout.html (+13/-15)
doc/source/percona-theme/static/percona.com.css (+3/-3)
doc/source/xtrabackup_bin/choosing_binary.rst (+7/-1)
doc/source/xtrabackup_bin/incremental_backups.rst (+5/-1)
innobackupex (+5/-3)
Changed in percona-xtrabackup: | |
status: | Triaged → In Progress |
Changed in percona-xtrabackup: | |
status: | In Progress → Fix Committed |
Changed in percona-xtrabackup: | |
status: | Fix Committed → Fix Released |
I don't see a way to fix this until we either merge innobackupex with xtrabackup, or at least fix innobackupex to use Perl DBI instead of talking to the server through the command line client.
The command line client has hardcoded groups ("mysql" and "client"). So I suggest we document that connection-related parameters are only recognized in those groups in configuration files.