[Monetdb-developers] Perl documentation and connectivity

Stefan de Konink skinkie at xs4all.nl
Sat Oct 20 02:34:43 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,


I'm trying the first lines of the Perl example presented:

http://monetdb.cwi.nl/projects/monetdb/SQL/Documentation/The-Perl-Library.html

# connect to the database:
my $dsn =
'dbi:monetdb:database=test;host=localhost;port=50000;language=mil';
my $dbh = DBI->connect( $dsn,
  undef, undef,  # no authentication in MIL
  { PrintError => 0, RaiseError => 1 }  # turn on exception handling
);


skinkie at xen01 ~/private $ perl test.pl

Start a simple Monet MIL interaction

data sources: dbi:monetdb:
DBI
connect('database=test;host=localhost;port=50000;language=mil','',...)
failed: RuntimeError Usage:
mapi_connect(host,port,username,password,lang,dbname);
 at test.pl line 15

(I have traced this back to: MonetDB/CLI/MapiLib.pm)


Is there some trivial thing I have missed? (I'm definitely not a Perl
hero so forgive me for my incompetence.)


Yours Sincerely,

Stefan de Konink



ps. Running:

# MonetDB Server v5.0.0
# Copyright (c) 1993-2007 CWI, all rights reserved
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs
dynamically linked
# dbname:demo

ps2. I know test!=demo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHGU0jYH1+F2Rqwn0RCvlvAJ0XbNzyV8ySOyoNcKbmitNWUSwH1gCfaDma
/kMe7PQ4nl9cRhMcKpun2Uw=
=BP78
-----END PGP SIGNATURE-----




More information about the developers-list mailing list