user in ~/.my.cnf is ignored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If a user is specified in ~/.my.cnf but not in command line mylvmbackup ignores it, instead uses default root
# mylvmbackup --backupdir=
20140114 18:24:05 Info: Connecting to database...
DBI connect(
20140114 18:24:05 Error: Access denied for user 'root'@'localhost' (using password: YES)
20140114 18:24:05 Info: Running hook 'logerr' as perl module.
Uncaught exception from user code:
Access denied for user 'root'@'localhost' (using password: YES) at /usr/bin/
at /usr/bin/
# cat ~/.my.cnf
#
[client]
user=backuper
password=qwerty
socket = /var/lib/
If the user is specified in the command line the password is successfully read from ~/.my.cnf
This might be a bug or feature of the MySQL client library (and hence DBI) - not sure if I can do anything about that.