[Bug 321091] Re: Bacula fails to install correctly if mysql wasn't installed before

Scott Moser smoser at ubuntu.com
Fri Feb 10 14:34:13 UTC 2012

This is easily reproduced on 12.04 (still) by running the following from a fresh install (without mysql installed already).
Just run:
 sudo apt-get install bacula-director-mysql

Then you'll see a series of debconf questions:

- [Configuring mysql-server-5.5]
  fill in a new mysql root password for
- [Configuring mysql-server-5.5]
  repeat for confirmation of password
- [Configuring bacula-director-mysql]
  Configure database for bacula-director-mysql with dbconfig-common: Yes
- [Configuring bacula-director-mysql]
  Provide mysql root password
- [Configuring bacula-director-mysql]
  MySQL application password for bacula-director-mysql: passw0rd
  Password Confirmation: passw0rd
- [Configuring bacula-director-mysql]
   An error occurred while installing the database:

   ERROR 2002 (HY000): Can't connect to local MySQL server through socket
   '/var/run/mysqld/mysqld.sock' (2)

   If at this point you choose "retry", you will be prompted with all the
   configuration questions once more and another attempt will be made at performing
   the operation. "retry (skip questions)" will immediately attempt the operation
   again, skipping all questions.  If you choose "abort", the operation will fail
   and you will need to downgrade, reinstall, reconfigure this package, or
   otherwise manually intervene to continue using it.  If you choose "ignore", the
   operation will continue, ignoring further errors from dbconfig-common.

   Next step for database installation:

      retry (skip questions)

The easy work around is to simply do:
 sudo apt-get install mysql
 sudo apt-get install bacula-director-mysql

You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.

  Bacula fails to install correctly if mysql wasn't installed before

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list