Package: dbconfig-common
Version: 1.8.47
Severity: minor

--- Please enter the report below this line. ---
When I tried to install a package that used dbconfig-common to create a new 
mysql database I got mysql authentication errors although I was 100% sure I 
had given the correct password.

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: 
YES)

Only after finding out the executed mysql command and replaying that with 
strace -e open I found the reason for this: 
dbconfig-common uses mysql --defaults-extra-file=/something.cnf containing the 
credentials acquired via debconf. Unfortunately these credentials are 
overruled by a /root/.my.cnf if it exists.

And I had a .my.cnf with a wrong password. 

It would be nice if either
- dbconfig-common could make sure that ~/.my.cnf isn't taken into account, or,
- the error message from dbconfig-common would mention that .my.cnf might be a 
cause for problems.

Thanks,
Carsten


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.38-1-amd64

Debian Release: wheezy/sid
  500 unstable        www.debian-multimedia.org 
  500 unstable        ftp.de.debian.org 
  500 testing         ftp.de.debian.org 
  500 stable          security.debian.org 
  100 experimental-snapshots qt-kde.debian.net 
    1 experimental    ftp.de.debian.org 

--- Package information. ---
Depends          (Version) | Installed
==========================-+-===========
ucf              (>= 0.28) | 3.0025+nmu2
debconf          (>= 0.5)  | 1.5.39
 OR debconf-2.0            | 


Package's Recommends field is empty.

Suggests                  (Version) | Installed
===================================-+-===========
virtual-mysql-client                | 
 OR mysql-client                    | 5.1.56-1
 OR postgresql-client               | 





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to