Changes

Jump to navigation Jump to search
180 bytes added ,  15:35, 31 January 2019
no edit summary
* Older versions are based on Java 6.
BaseX has been tested on several platforms, including Windows (2000, XP, Vista, 7), Max Mac OS X (10.x),
Linux (SuSE xxx, Debian, Ubuntu) and OpenBSD (4.x).
For example, if you only read data, you can easily run several clients (standalone, GUI, database clients) at the same time. If you update your data, however, you shouldn’t use the GUI or a standalone instance at the same time.
More details on concurrency are found in on the [[Transaction Management]] articlepage.
=Standalone Mode=
The [[Standalone Mode]] can be used to execute XQuery expressions or run database commands on command line. It can also be used for both for scripting and batch processing your XML data. It can be started as follows (get more information on all [[Command-Line Options#Standalone|Startup Options]]):
* Run one of the {{Code|[[Start_Scripts#Linux.2FMac:_basex|basex]]}} or {{Code|[[Start Scripts#Windows: basex.bat|basex.bat]]}} scripts.
* On ''Windows'': Double click on the '''BaseX''' icon.
It is important to remember that the standalone mode does ''not'' interact with the client/server architecture. More information on the standalone mode's command-line options can be found [[Command-Line Options#Standalone|here]].
=Graphical User Interface=
The [[GUI]] is the visual interface to the features of BaseX.
It can be used to create new databases, perform queries or interactively
explore your XML data. It can be started as follows (get more information on all [[Command-Line Options#GUI|Startup Options]]):
* Double click on the {{Code|BaseX.jar}} file.
* For [[Maven]] users: type in {{Code|mvn exec:java}} in the main directory of the {{Code|basex}} project.
Note that the GUI does ''not'' interact with the client/server architecture. More information on the GUI's command-line options can be found [[Command-Line Options#GUI|here]].
=Database Server=
By default, the server listens to the port {{Code|1984}}.
There are several ways of starting and stopping the server(get more information on all [[Command-Line Options#Server|Startup Options]]):
* Run one of the {{Code|[[Start_Scripts#Linux.2FMac:_basex|basexserver]]}} or {{Code|[[Start Scripts#Windows: basex.bat|basexserver.bat]]}} scripts. Add the {{Code|stop}} keyword to gracefully shut down the server.
* On ''Windows'': Double click on the '''BaseX Server''' icon, which will also start the HTTP Server used for [[#Web Application|Web Applications]], or the '''BaseX Server (stop)''' icon.
Pressing {{Code|Ctrl+c}} will close all connections and databases and shut down the server process. More information on the database server's command-line options can be found [[Command-Line Options#Server|here]].
==Client==
The BaseX [[Database Server#Command-Line Client|BaseX Client]] interface can be used to send
commands and queries to the server instance on command line.
It can be started as follows(get more information on all [[Command-Line Options#Client|Startup Options]]):
* Run one of the {{Code|[[Start_Scripts#Linux.2FMac:_basex|basexclient]]}} or {{Code|[[Start Scripts#Windows: basex.bat|basexclient.bat]]}} scripts.
* Execute the following command: {{Code|java -cp BaseX.jar org.basex.BaseXClient}}
* On ''Windows'': Double click on the '''BaseX Client''' icon.
 
More information on the client's command-line options can be found [[Command-Line Options#Client|here]].
The default {{Code|admin}} user can be used to connect to the server: <br/>
With the HTTP Server, BaseX can be used to build [[Web Application]]s.
It provides access to the [[REST]], [[RESTXQ]] and [[WebDAV]] services.
An instance of the [httphttps://jettywww.codehauseclipse.org/jetty/ Jetty Web Server] will be created,which by default listens to the port {{Code|8984}}. Additionally, the BaseX DatabaseServer willbe started, which is accessible on port {{Code|1984}}.
It can be started as follows (get more information on all [[Command-Line Options#HTTP Server|Startup Options]]):
* Run one of the {{Code|[[Start_Scripts#Linux.2FMac:_basexhttp|basexhttp]]}} or {{Code|[[Start Scripts#Windows: basexhttp.bat|basexhttp.bat]]}} scripts. Call the script with the {{Code|stop}} keyword to gracefully shut down the server.
After that, you can e. g. open your browser and navigate to the RESTXQ start page http://localhost:8984.
 
More information on the HTTP server's command-line options can be found [[Command-Line Options#HTTP Server|here]].
==Database Administration==
administrator, editor
162

edits

Navigation menu