in reply to Re: Creating a Firebird Database
in thread Creating a Firebird Database

Hi Martin,

I've been using DBI and this is the code I've been trying to use:

$dbh = DBI->connect("dbi:InterBase:dbname=/usr/local/firebird/security.fdb;ho +st=$host",$fbuser,$fbpass,{AutoCommit =>1}); my $create = qq(CREATE DATABASE '$host:/var/lib/firebird/$dbname.fdb' +user '$username' password '$password'); $dbh->do($create);

When I try to run it I get these errors, which is what makes me think I might be connected to the wrong database.

DBD::InterBase::db do failed: Unsuccessful execution caused by an unavailable resource.
invalid database handle (no active connection)

Thanks for all your help.

Izabelle