Hello Radoslaw

I've opened this ticket because when I had create a script to run in both
database (MySQL or PostgreSQL) using bconsole, I used the command "show
catalog" to get the database name, and I've noticed that if the information
is not set in the catalog resource it doesn't appear in bconsole.

*show catalog
Catalog: name=MyCatalog address=*None* DBport=0 db_name=bacula
      db_driver=*None* db_user=bacula MutliDBConn=0

And after configure all parameters like below, the command "show catalog"
in bconsole shows all informations.

Catalog {
  Name = "MyCatalog"
  dbdriver = "pgsql"
  dbaddress = "localhost"
  dbport = "5432"
  dbname = "bacula"
  dbuser = "bacula"
  dbpassword = "bacula"
}

*show catalog
Catalog: name=MyCatalog address=localhost DBport=5432 db_name=bacula
      db_driver=pgsql db_user=bacula MutliDBConn=0



Another problems was about PostgreSQL connections. Sometimes worked,
sometimes not. And after include all parameters in the Catalog resource,
works like a charm

Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2018-04-26 8:40 GMT-03:00 Radosław Korzeniewski <rados...@korzeniewski.net>:

> Hello Developers,
>
> I found a following issue reported at bugs.bacula.org: "0002340: Bacula
> doesn't set db_driver by default when you compile" and I have some
> questions about it. What I can find in Bacula documentation about a
> dbdriver parameter is:
>
> *Catalog {  Name = MyCatalog  dbdriver = dbi:mysql; dbaddress = 127.0.0.1;
> dbport = 3306  dbname = regress; user = regress; password = ""}*
> *The parameter dbdriver indicates that we will use the driver dbi with a
> mysql database.  Currently the drivers supported by Bacula are:
> postgresql, and mysql; these are the names that may be added to string
> ”dbi:”.*
>
> So, as I understand the dbdriver is a parameter used by a DBI to select
> what database backend it should use. I think that current Bacula (9.x) does
> not support a libdbi anymore, so I think that a documentation and a Bacula
> code itself should be updated in this case, or I miss a different purpose
> of this parameter?
>
> I checked it and the current Bacula code just ignore the dbdriver
> parameter completely and I can set it to any value I like. Sure the value
> set in config file will be displayed in show catalog command mentioned in
> the above ticket.
>
> best regards
> --
> Radosław Korzeniewski
> rados...@korzeniewski.net
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-devel mailing list
> Bacula-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to