Dan Langille wrote:
On 26 Feb 2006 at 16:17, Erik P. Olsen wrote:
I have come to the point where I've started testing the configuration
files. However, the first test fails:
[EMAIL PROTECTED] conf]# ../bin/bacula-dir -t -c bacula-dir.conf
26-Feb 15:57 bacula-dir: Fatal error: Could not open database "bacula".
26-Feb 15:57 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 15:57 bacula-dir ERROR TERMINATION
Please correct configuration file: bacula-dir.conf
Is there any log somewhere which could tell me why the database "bacula"
could not be opened?
You could increase the debugging level by adding "-d 99" or something
similar.
[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>
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