|
|
|||
|
The Hello World example test lifeness of the MonetDB server. Any error reported here indicates some installation error or environment conflict. Starting version 5 serverOn Windows the first step is to initialize a MonetDB server by simply clicking: 'Start' -> 'Programs' -> 'MonetDB ' -> 'Start server'. The procedure on Linux involves starting the MonetDB server by calling the program mserver5, which accepts MAL instructions. For example, the hello world problem is solved as follows:
$ mserver5
# MonetDB Server v5.0.0
# Copyright (C) 1997-July 2008 CWI.
# Copyright August 2008-2009 MonetDB B.V.
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked
# dbname:demo
# Visit http://monetdb.cwi.nl/ for further information
#warning: please don't forget to set your vault key!
#(see /ufs/mk/monet5/Linux/etc/monetdb5.conf)
>io.print("Hello World");
[ "Hello World" ]
>
Note that for this example the path to the mserver5 binary needs to
reside in your $PATH.
Stopping the serverTo stop the server on Windows, you can simply close
the |
||||
|
|
||||
| © 1994-2010 CWI | Contact us Legal HG web Bugs TestWeb PermaStore | |||