Re: [Bacula-users] Installing Bacula 5.0.2 in Ubuntu 10.04 with MySQL 5.1
Hi, On Sat, 26 Jun 2010, Graham Sparks wrote: 26-Jun 18:01 bacula-dir JobId 0: Fatal error: Could not open Catalogue MyCatalog, database bacula. 26-Jun 18:01 bacula-dir JobId 0: Fatal error: mysql.c:194 Unable to connect to MySQL server. Database=bacula User=bacula MySQL connect failed either server not running or your authorisation is incorrect. 26-Jun 18:01 bacula-dir ERROR TERMINATION I'd suggest (if you haven't already) that you lift the exact username, password, host and database name from the config file and try a mysql -u username -p -h hostname databasename give the password at the prompt and make sure . It could be, for example, that the mysql database is listening on the eth0 interface but not the loopback or vice versa. By default, I presume bacula connects on the localhost so if that's not specified you should probably use 127.0.0.1. Gavin -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Installing Bacula 5.0.2 in Ubuntu 10.04 with MySQL 5.1
Hello, I've been having trouble installing Bacula 5.0.2 in Ubuntu 10.04 with a MySQL database. I had it running well under Ubuntu 8.04. The director starts and then dies after it cannot communicate with the MySQL database. I've reinstalled both MySQL (5.1.48) and Bacula 5.0.2, updated the Bacula tables and used the default config files to get it started. The log file shows the following error: 26-Jun 18:01 bacula-dir JobId 0: Fatal error: Could not open Catalogue MyCatalog, database bacula. 26-Jun 18:01 bacula-dir JobId 0: Fatal error: mysql.c:194 Unable to connect to MySQL server. Database=bacula User=bacula MySQL connect failed either server not running or your authorisation is incorrect. 26-Jun 18:01 bacula-dir ERROR TERMINATION Please correct configuration file: /opt/bacula/bin/bacula-dir.conf I firmly believe that the configuration file is not the problem. I've disabled the firewall (using Firestarter), stopped AppArmor and even logged into MySQL with the bacula user and added tables to the bacula database and deleted them again. Any help greatly appreciated. Many thanks. _ http://clk.atdmt.com/UKM/go/19780/direct/01/ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now-- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users