Package: dbconfig-common
Version: 1.8.52
Severity: normal

Hi,

I'm having trouble with the pdns-backend-mysql package, which uses
dbconfig-common to setup a database.

The config script basically contains this:

# Execute dbconfig-common
. /usr/share/debconf/confmodule
if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
    . /usr/share/dbconfig-common/dpkg/config.mysql

    # Default values
    dbc_dbuser="pdns"
    dbc_dbname="pdns"
    dbc_first_version="3.0-1"

    dbc_go pdns-backend-mysql $@
fi

Which I think means that the MySQL DB and user should both be called
"pdns". I also /think/ this used to work in older versions.

But nowadays, the DB is named "pdnsbackendmysql" and the user "pdns-backend-mys"
instead.

Install log snippet:

Setting up pdns-backend-mysql (3.4.5-2) ...
dbconfig-common: writing config to /etc/dbconfig-common/pdns-backend-mysql.conf

Creating config file /etc/dbconfig-common/pdns-backend-mysql.conf with new 
version

Creating config file /etc/powerdns/pdns.d/pdns.local.gmysql.conf with new 
version
granting access to database pdnsbackendmysql for pdns-backend-mys@localhost: 
success.
verifying access for pdns-backend-mys@localhost: success.
creating database pdnsbackendmysql: success.
verifying database pdnsbackendmysql exists: success.
populating database via sql...  done.
dbconfig-common: flushing administrative password

Generated config file snippet:

gmysql-host=localhost
gmysql-port=
gmysql-dbname=pdnsbackendmysql
gmysql-user=pdns-backend-mys
gmysql-password=2ycyyxG7FApj

Thanks,
Christian

-- 
 ,''`.  Christian Hofstaedtler <z...@debian.org>                                
                                                                                
                                            
: :' :  Debian Developer                                                        
                                                                                
                                            
`. `'   7D1A CFFA D9E0 806C 9C4C  D392 5C13 D6DB 9305 2E03                      
                                                                                
                                            
  `-                                                                            
                                                                                
                                            

Reply via email to