Erik P. Olsen wrote:
Arno Lehmann wrote:
Hello,
On 2/26/2006 8:30 PM, Erik P. Olsen wrote:
Dan Langille wrote:
...
[EMAIL PROTECTED] conf]# ../bin/bacula-dir -d 99 -t -c bacula-dir.conf
bacula-dir: dird.c:128 Debug level = 99
bacula-dir: mysql.c:142 mysql_init done
bacula-dir: mysql.c:162 mysql_real_connect done
bacula-dir: mysql.c:164 db_user=bacula db_name=bacula db_password=
26-Feb 20:18 bacula-dir: Fatal error: Could not open database "bacula".
26-Feb 20:18 bacula-dir: Fatal error: mysql.c:170 Unable to connect
to MySQL server.
Database=bacula User=bacula
It is probably not running or your password is incorrect.
26-Feb 20:18 bacula-dir ERROR TERMINATION
Please correct configuration file: bacula-dir.conf
Is MySQL running?
Yes
Please show us the Catalog resource from bacula-dir.conf
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = ""
}
Can you connect to mysql on the command line using the parameters in
the Catalog resource?
Yes:
[EMAIL PROTECTED] ~]$ mysql -u bacula
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 4.1.18-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
What happens when you enter 'use bacula'?
mysql> use bacula;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
Apparently I can open and use bacula database from the command line and
bacula can't. I don't see any "no permission" messages so I believe the
necessary permissions are in place. Could it be that a special link
between bacula and mysql has not been set up and thus is missing?
I am a total loss on this problem and don't know what to do other than a
total reinstall of both bacula and mysql. Insidentally, both bacula-fd
and bacula-sd start up without problems it is "only" bacula-dir which
causes problems.
--
Regards,
Erik P. Olsen
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users