I have created a customed version of the MServer5.bat and MClient.bat to serve multiple databases.
MServer5.bat :
set MONETHOME=D:\Amber\Program\MonetDB\MonetDB5
set MONETDATAROOT=%1
set MONETDATAROOT=%MONETDATAROOT:~0,-1%
set MONETDBNAME=%2
if "%MONETDATAROOT%" == "" pause
if "%MONETDBNAME%" == "" pause
set PATH=%MONETHOME%\bin;%MONETHOME%\lib;%MONETDB%\lib\MonetDB5;%PATH%
set MONETDBFARM=--dbfarm="%MONETDATAROOT%\dbfarm"
set SQLLOGDIR=--set "sql_logdir=%MONETDATAROOT%\sql_logs"
set XQUERYLOGDIR=--set "xquery_logdir=%MONETDATAROOT%\xquery_logs"
rem start the real server
"%MONETHOME%\bin\mserver5.exe" --set "prefix=%MONETHOME%" --set "exec_prefix=%MONETHOME%" %MONETDBFARM% %SQLLOGDIR% --dbname=%MONETDBNAME% --dbinit="include sql;"
MClient5.bat
@set MONETHOME=D:\Amber\Program\MonetDB\MonetDB5
@set DBNAME=%1
if "%DBNAME%" == "" pause
@rem extend the search path with our EXE and DLL folders
@rem we depend on pthreadVCE.dll having been copied to the lib folder
@set PATH=%MONETHOME%\bin;%MONETHOME%\lib;%MONETHOME%\lib\bin;%PATH%
@rem start the real client
@"%MONETHOME%\bin\mclient.exe" -lsql -d %DBNAME%
@if ERRORLEVEL 1 pause
Using "MServer5.bat D:\MONETDB amber" I am able to start a new server process, ant it successfully created a new database in D:\MONETDB directory, but with the new server and default demo server process all running, I can't use mclient connect to the new database.
MClient5.bat amber
D:\>mclient.exe -E GB2312 -lsql -d amber
!database 'amber' does not exist
But the demo database can be connected to, and the new database can be connected to only when I close the demo database process.
The netstat -a command shows there are two processes listening on port 50000.
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!