Changes

Jump to navigation Jump to search
2 bytes removed ,  11:32, 12 August 2015
no edit summary
First of all, please launch a '''standalone''' version of BaseX: double click on the '''BaseX''' icon, or run the <code>basex</code> script. [[Startup#Standalone|Follow this link]] for more information (or check out the additional [[Command-Line Options#Standalone|command-line options]]).
=Create a databaseDatabase=
* To create a database you need an XML document, e.g. [http://files.basex.org/xml/factbook.xml factbook.xml].
Depending on your [[Configuration]], the location of your home folder varies. For example, on a Mac it's <code>/Users/John</code>, if your name is John. If you are working with the ZIP or EXE distribution, the directory will be named <code>data</code> and reside in the application directory.
=Execute a queryQuery=
The [[Commands#XQUERY|XQUERY]] command lets you run a query.
</code>
=Database commandsCommands=
* The following command lists all databases than can be opened by the currently logged in user:
Make sure that the database, which contains the addressed document, is currently opened.
=Backup and restoreRestore=
* To backup your database, type:
</code>
'''Where is the backup-file stored?''' The backup-file is stored in the database directory.The file is named contains the name of the database and a timestamp: <code>factbook[db-timestamp.zip</code> (<code>db_namename]-[timestamp].zip</code>).To restore the If a database is restored, and if several backups exist, the file backup with the newest timestamp is taken.
[[Category:Beginner]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu