← Back to team overview

enterprise-support team mailing list archive

[Bug 1269093] [NEW] user in ~/.my.cnf is ignored

 

Public bug reported:

If a user is specified in ~/.my.cnf but not in command line  mylvmbackup
ignores it, instead uses default  root


# mylvmbackup --backupdir='$BACKUPDIR' --vgname=$VG --lvname=$LV --xfs
20140114 18:24:05 Info: Connecting to database...
DBI connect('database=mysql;mysql_read_default_group=client','root',...) failed: Access denied for user 'root'@'localhost' (using password: YES) at /usr/bin/mylvmbackup line 202
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/mylvmbackup line 206.
 at /usr/bin/mylvmbackup line 206

# cat ~/.my.cnf 
#
[client]
user=backuper
password=qwerty
socket                         = /var/lib/mysql/mysql.sock


If the user is specified in the command line the password is successfully read from ~/.my.cnf

** Affects: mylvmbackup
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to MySQL.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1269093

Title:
  user in ~/.my.cnf is ignored

To manage notifications about this bug go to:
https://bugs.launchpad.net/mylvmbackup/+bug/1269093/+subscriptions


Follow ups

References