SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
howto force bscan to use mysql
Author Message
Post howto force bscan to use mysql 
Hi,

I'm trying to restore a catalog froma a tape to a new bacula server insrtallation. My new server intallation is using mysql and the old one was using postgresql. When I try to restore the catalog from a tape (see below), bscan try to login in a postgresql server but there is no more postgresql server. Can I force bscan to connect to a mysql server ? There is a -D option in the bscan command but I don't have found any information on the parameter I have to provide.

Regards

bscan -V 000072L5 -v -s -m -c mysdconf -h mydbserver -P mydbpasswd -t 3306 /dev/nst0

bscan: butil.c:281 Using device: "/dev/nst0" for reading.
27-Dec 12:35 bscan JobId 0: Invalid slot=0 defined in catalog for Volume "000072L5" on "LTO5-Drive" (/dev/nst0). Manual load may be required.
27-Dec 12:35 bscan JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
27-Dec 12:35 bscan JobId 0: 3302 Autochanger "loaded? drive 0", result is Slot 7.
27-Dec 12:35 bscan JobId 0: Ready to read from volume "000072L5" on device "LTO5-Drive" (/dev/nst0).
27-Dec 12:35 bscan: ERROR TERMINATION at bscan.c:304
postgresql.c:227 Unable to connect to PostgreSQL server. Database=bacula User=bacula
Possible causes: SQL server not running; password incorrect; max_connections exceeded.



--
Laurent Pirotte
System Administrator laurent.pirotte < at > handicap.be ([email]Laurent%20Pirotte[/email])
tél : + 32 (0)2 233 01 52
fax : + 32 (0)2 230 60 30
Handicap International http://handicapinternational.be rue de Spa 67
1000 Bruxelles
P Please consider the environment before printing this email

Post howto force bscan to use mysql 
Am 27.12.2011 12:55, schrieb Laurent Pirotte:
I'm trying to restore a catalog froma a tape to a new bacula server
insrtallation. My new server intallation is using mysql and the old one
was using postgresql. When I try to restore the catalog from a tape (see
below), bscan try to login in a postgresql server but there is no more
postgresql server. Can I force bscan to connect to a mysql server ?

You are obviously running a version of bscan compiled for PostgresQL.
Use a version of bscan built with MySQL support instead.

For example, if you installed Bacula from rpm packages, install
the bacula-storage-mysql package instead of bacula-storage-postgresql.

HTH

--
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB