Bacula will do all this properly providing you install MySQL before installing bacula - this is a bit of an oversight on the part of the port builder IMHO, but it's also relatively easy to work around, so no harm, no foul; We all only have so many hands. (A note to the port maintainer, if the user has selected a MySQL install, bacula should have it as a dependancy)

Make sure you have mysql-server v. 4.0x installed (this may work with other versions as well).

Make sure your DB is running, then run the following:
/usr/local/share/bacula/
        create_mysql_database
        grant_mysql_privileges
        make_mysql_tables

Then you should be good AFAIK.

Cheers!

-E-

Christopher Rasch-Olsen Raa wrote:
Hi,

I have just installed Bacula from ports on FreeBSD. After editing the
config-files, I created a database called "bacula" and set the user
"bacula" to get all privileges on it. The username/pass was updated in
the bacula-configuration.

When I try to start bacula I get the following output:

Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
21-Jun 18:20 bacula-dir:  Fatal error: Version error for database
"bacula". Wanted 8, got 0
21-Jun 18:20 bacula-dir:  Fatal error: Could not open database "bacula".
21-Jun 18:20 bacula-dir:  Fatal error: Version error for database
"bacula". Wanted 8, got 0
21-Jun 18:20 bacula-dir ERROR TERMINATION
Please correct configuration file: /usr/local/etc/bacula-dir.conf


Does bacula not build the proper tables and populate them at first run?
What can I do to resolve this?


Regards,
Christopher Rasch-Olsen Raa



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to