Gentoo linux
mysql-5.0.16-r4
bacula-1.36.3-r2

I had a running bacula setup a while back and was just starting to
learn how to use it for real work.  Did a major reinstall of os and
now back to square one, but also seems I've forgotten whatever I
learned. 

First tried with the default config files intact to start bacula, it
failed with similar output as below

I've forgotten how the passwording works.  When Mysql was installed a
root password was created but not sure how to let bacula know about
it.  And not sure really if that is even the problem...

I can talk to the mysql daemon so I know its running and accepting the
password. 

mysql -p ... works.

bacula-dir has the passwords generated on install already in there and as I
recall I didn't mess with those last time, so I'm using the ones
created on this install.

I have run the create database scripts for mysql and bacula with no errors
But starting bacula appears to fail at connecting with mysql daemon.

  Starting bacula from /var/lib/bacula/bacula start -d100
and then bconsole in a different xterm:

  root # ./bacula start -d100
  
  Starting the Bacula Storage daemon
  bacula-sd: stored_conf.c:453 Inserting director res: reader-mon
  reader-sd: jcr.c:82 read_last_jobs seek to 188
  reader-sd: jcr.c:89 Read num_items=0
  Starting the Bacula File daemon
  bacula-fd: filed_conf.c:328 Inserting director res: reader-mon
  reader-fd: jcr.c:82 read_last_jobs seek to 188
  reader-fd: jcr.c:89 Read num_items=0
  reader-sd: stored.c:310 calling init_dev /mnt/pack/bacula
  reader-sd: stored.c:312 SD init done /mnt/pack/bacula
  reader-fd: filed.c:256 filed: listening on port 9102
  reader-fd: bnet_server.c:88 Addresses host[ipv4:0.0.0.0:9102] 
  reader-sd: bnet_server.c:88 Addresses host[ipv4:0.0.0.0:9103] 
  Starting the Bacula Director daemon
  bacula-dir: dird.c:131 Debug level = 100
  bacula-dir: mysql.c:81 db_open first time
  bacula-dir: mysql.c:141 mysql_init done
  bacula-dir: mysql.c:161 mysql_real_connect done
  bacula-dir: mysql.c:163 db_user=bacula db_name=bacula db_password=
  21-Dec 14:53 bacula-dir:  Fatal error: Could not open database "bacula".
  21-Dec 14:53 bacula-dir:  Fatal error: mysql.c:169 Unable to connect to MySQL 
server. 
  Database=bacula User=bacula
  It is probably not running or your password is incorrect.
  21-Dec 14:53 bacula-dir ERROR TERMINATION
  Please correct configuration file: /etc/bacula/bacula-dir.conf





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to