[Monetdb-developers] Perl documentation and connectivity
-----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.ht... # 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@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-----
On Sat, Oct 20, 2007 at 02:34:43AM +0200, Stefan de Konink wrote:
-----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.ht...
# 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@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.)
It seems the perl dbi sources are out of date some what. It needs to pass an extra argument to the mapi_connect call (db). Niels
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-----
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- Niels Nes, Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands room C0.02, phone ++31 20 592-4098, fax ++31 20 592-4312 url: http://www.cwi.nl/~niels e-mail: Niels.Nes@cwi.nl
participants (2)
-
Niels Nes
-
Stefan de Konink