Changes

Jump to navigation Jump to search
278 bytes removed ,  11:15, 15 February 2021
no edit summary
This step by step tutorial is part of article belongs to the [[Getting Started]] Guide.It shows tells you how to run BaseX in client-server mode from a terminal. You can copy and paste all commands to get them running on your machine. After you finished this tutorial, you will be familiar with the basic administration of BaseX. Visit the [[Commands|commands section]] for a complete list of database commandscommand-line.
=Startup=
The database server can be started as follows:==Server==
The database server handles concurrent [[Transaction_Management|read and write transactions]], [[User Management|manages user permissions]] and [[Logging|logs user interactions]]. It can be started as follows: * 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.* Execute the following command: {{Code|java -cp BaseX.jar org.basex.BaseXServer}}. Again, the {{Code|stop}} keyword will ensure a graceful shutdown.
* If you have installed BaseX on ''Windows'', click on the '''BaseX HTTP Server (Start)''' icon, which will start both the HTTP Server used for [[#Web Application|Web Applications]] and the database server. With '''BaseX HTTP Server (Stop)''', you can shut down the server process.
By default, the server listens to the port {{Code|1984}}. Pressing {{Code|Ctrl+c}} will close all connections and databases and gracefully shut down the server process. Various [[Command-Line_Options#Server|command-line options]] are available to simplify batch processing. The [[Start_Scripts#Server|start script]] can be adjusted for individual purposes (e.g. if the default memory limit is too restrictive). ==Client==
The client is Database clients are started similarly:
* 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}}
* If you have installed BaseX on ''Windows'', click on the '''BaseX Client''' icon.
At startup, you need to enter your credentials. The default initial passwort of the {{Code|admin}} user can be used to connect to the server: <br/>* <b>Username:</b> is {{Code|admin}}* <b>Password:</b> {{Code|admin}}The password should ; it can be changed with the {{Code|[[Commands#PASSWORD|PASSWORD]]}} command after the first login.<br/>
For further details, have a look at the [[Command-Line_Options#Client|command-line options]] and the [[Start_Scripts#Client|start script]].
=Introduction=
Write Locking: none
Query "user" executed in 0.41 ms.</pre>
=Language Bindings=
If you want to communicate with the database server programmatically, we provide clients for various [[Clients|programming languages]].
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu