If a BaseX server is started, and if a database is created in its context at startup time, e.g., with the [[Command-Line Options|command-line option -c]] and a {{Command|CREATE DB}} call, BaseX clients can then access and update this database:
<syntaxhighlight pre lang="perl">
# Server
basexserver -c"SET mainmem on" -c"CREATE DB mainmem document.xml"