Here’s something I run in query console to setup a database, forest and XDBC server, after which a configuration in imported with configuration manager:
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $dbName := 'dbname' let $port := portno let $config := admin:get-configuration() let $config := admin:forest-create($config, $dbName, xdmp:host(), ()) let $config := admin:database-create($config, $dbName, xdmp:database("Security"), xdmp:database("Schemas")) let $save := admin:save-configuration($config) let $config := admin:database-attach-forest($config, xdmp:database($dbName), xdmp:forest($dbName)) let $save := admin:save-configuration($config) let $config := admin:xdbc-server-create($config, admin:group-get-id($config, "Default"), concat($dbName, '-XDBC'), "/", $port, 0, xdmp:database($dbName)) return admin:save-configuration($config) Gary From: [email protected] [mailto:[email protected]] On Behalf Of Andreas Jung Sent: Tuesday, February 16, 2016 8:43 AM To: [email protected] Subject: [MarkLogic Dev General] Automatic provisioning and configuration of ML server? Hi there, I am pretty new to MLS and currently evaluating and testing options. General question: what is the preferred way to configure a MLS automatically after installation without clicking around through the web user interface. E.g. I want to create a test database automatically, configure a webdav app server it in a fully automated way...what is the approach here? Andreas
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
