~ludovicc/uj/basex

« back to all changes in this revision

Viewing changes to debian/man/basexserver.1

  • Committer: Ludovic Claude
  • Date: 2011-02-20 20:06:43 UTC
  • Revision ID: ludovic.claude@laposte.net-20110220200643-637a86ip3rux9oe2
* Initial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\"Text automatically generated by txt2man
 
2
.TH basexserver 1 "15 February 2011" "" "The XML Database"
 
3
.SH NAME
 
4
\fBbasexserver \fP- XML database system and XPath/XQuery processor (server mode)
 
5
\fB
 
6
.SH SYNOPSIS
 
7
.nf
 
8
.fam C
 
9
\fBbasexserver\fP [\fB-s\fP] [\fB-dpz\fP] [\fB-c\fP] [\fIstop\fP]
 
10
 
 
11
.fam T
 
12
.fi
 
13
.fam T
 
14
.fi
 
15
.SH DESCRIPTION
 
16
\fBbasexserver\fP starts the server mode of the native XML database system \fBbasex\fP(1) on default port 1984.
 
17
.SH OPTIONS
 
18
.TP
 
19
.B
 
20
\fIstop\fP
 
21
Stop an existing server instance; remaining input is ignored. 
 
22
.TP
 
23
.B
 
24
\fB-c\fP<cmd>
 
25
Launch database commands before the server itself is started; all remaining text is interpreted as command input. Several commands can be separated by semicolons. (\fB-c\fP"open database;info")
 
26
.TP
 
27
.B
 
28
\fB-d\fP
 
29
Turn on debugging. Debugging information is output to standard error. 
 
30
.TP
 
31
.B
 
32
\fB-i\fP
 
33
Interactively enter commands on the console, similar to standalone and client mode. 
 
34
.TP
 
35
.B
 
36
\fB-p\fP<num>
 
37
Specify the port on which the server will be addressable (default 1984, \fB-p9999\fP). 
 
38
.TP
 
39
.B
 
40
\fB-s\fP
 
41
Start as daemon.
 
42
.TP
 
43
.B
 
44
\fB-z\fP
 
45
Do not generate log files.
 
46
.SH USER MANAGEMENT
 
47
On first startup a user 'admin' with default password 'admin' exists (make sure to change this)!
 
48
.PP
 
49
Admin permissions are needed to execute one of the following processes.
 
50
.IP \(bu 3
 
51
Creating user 'test' with password 'test':
 
52
.PP
 
53
.nf
 
54
.fam C
 
55
   > CREATE USER test test
 
56
 
 
57
.fam T
 
58
.fi
 
59
As global permissions valid options are 'none', 'read', 'write', 'create' and 'admin'.
 
60
.IP \(bu 3
 
61
Revoking all global permissions from user 'test':
 
62
.PP
 
63
.nf
 
64
.fam C
 
65
   > GRANT none TO test
 
66
 
 
67
.fam T
 
68
.fi
 
69
Valid local permissions are 'none', 'read' and 'write'.
 
70
.IP \(bu 3
 
71
Granting write permission on database 'factbook' to user 'test':
 
72
.PP
 
73
.nf
 
74
.fam C
 
75
    > GRANT write ON factbook TO test
 
76
 
 
77
.fam T
 
78
.fi
 
79
Note: Local permissions overwrite global permissions. As a consequence, the 'test' user will only be allowed to access (i.e., read and write) the 'factbook' database. If no local permissions are set, the global rights are inherited.
 
80
.IP \(bu 3
 
81
Showing global permissions:
 
82
.PP
 
83
.nf
 
84
.fam C
 
85
    > SHOW USERS
 
86
 
 
87
.fam T
 
88
.fi
 
89
.IP \(bu 3
 
90
Showing local permissions on database 'factbook':
 
91
.PP
 
92
.nf
 
93
.fam C
 
94
   > SHOW USERS ON factbook
 
95
 
 
96
.fam T
 
97
.fi
 
98
.IP \(bu 3
 
99
Dropping of user 'test':
 
100
.PP
 
101
.nf
 
102
.fam C
 
103
   > DROP USER test
 
104
 
 
105
.fam T
 
106
.fi
 
107
Further details on user management are to be found in the BaseX Documentation
 
108
Wiki (http://docs.basex.org/wiki/User_Management).
 
109
.SH DATABASE COMMANDS
 
110
A list of supported Database commands can be obtained from
 
111
.PP
 
112
.nf
 
113
.fam C
 
114
    $ basexserver \-i help
 
115
 
 
116
.fam T
 
117
.fi
 
118
or by browsing http://docs.basex.org/wiki/Commands
 
119
.PP
 
120
Following table shows BaseX commands and the permission needed to execute the command.
 
121
Without appropriate permission an error is thrown and the command will not be executed.
 
122
.TP
 
123
.B
 
124
close
 
125
Closes currently opened database.  (None)
 
126
.TP
 
127
.B
 
128
exit
 
129
Exits BaseX.  (None)
 
130
.TP
 
131
.B
 
132
get
 
133
Returns a property value.  (None)
 
134
.TP
 
135
.B
 
136
help
 
137
Shows the help texts.  (None)
 
138
.TP
 
139
.B
 
140
password
 
141
Changes password of currently logged-in user.  (None)
 
142
.TP
 
143
.B
 
144
set
 
145
Sets a property value.  (None)
 
146
.TP
 
147
.B
 
148
xquery
 
149
Executes a xquery function without database access.  (None)
 
150
.TP
 
151
.B
 
152
info
 
153
Shows information about the currently opened database.  (Read)
 
154
.TP
 
155
.B
 
156
list
 
157
Shows all available databases.  (Read)
 
158
.TP
 
159
.B
 
160
open
 
161
Opens a database.  (Read)
 
162
.TP
 
163
.B
 
164
xquery
 
165
Executes a read-only xquery function with database access.  (Read)
 
166
.TP
 
167
.B
 
168
add
 
169
Adds documents to the currently opened database.  (Write)
 
170
.TP
 
171
.B
 
172
create index
 
173
Creates the specified index.  (Write)
 
174
.TP
 
175
.B
 
176
delete
 
177
Deletes documents from the currently opened database.  (Write)
 
178
.TP
 
179
.B
 
180
drop index
 
181
Drops the specified index.  (Write)
 
182
.TP
 
183
.B
 
184
optimize
 
185
Optimizes the database structure and renews the indexes.  (Write)
 
186
.TP
 
187
.B
 
188
xquery
 
189
Executes a xquery update function.  (Write)
 
190
.TP
 
191
.B
 
192
alter db
 
193
Renames a database.  (Create)
 
194
.TP
 
195
.B
 
196
create db
 
197
Creates a database.  (Create)
 
198
.TP
 
199
.B
 
200
drop db
 
201
Drops a database.  (Create)
 
202
.TP
 
203
.B
 
204
export
 
205
Exports the database content.  (Create)
 
206
.TP
 
207
.B
 
208
alter user
 
209
Changes the password of an user.  (Admin)
 
210
.TP
 
211
.B
 
212
create users
 
213
Creates a new user.  (Admin)
 
214
.TP
 
215
.B
 
216
drop user
 
217
Drops an user.  (Admin)
 
218
.TP
 
219
.B
 
220
grant
 
221
Assigns permissions to users.  (Admin)
 
222
.TP
 
223
.B
 
224
kill
 
225
Kills an user session on the server.  (Admin)
 
226
.TP
 
227
.B
 
228
show
 
229
Shows different server information.  (Admin)
 
230
.SH SEE ALSO
 
231
\fBbasexclient\fP(1), \fBbasex\fP(1), \fBbasexgui\fP(1)
 
232
.TP
 
233
.B
 
234
~/.basex
 
235
BaseX (standalone and server) properties
 
236
.TP
 
237
.B
 
238
~/.basexgui
 
239
BaseX additional GUI properties 
 
240
.TP
 
241
.B
 
242
~/.basexperm
 
243
user name, passwords, and permissions
 
244
.TP
 
245
.B
 
246
~/BaseXData
 
247
Default database directory
 
248
.TP
 
249
.B
 
250
~/BaseXData/.logs
 
251
Server logs
 
252
.PP
 
253
BaseX Documentation Wiki: http://docs.basex.org
 
254
.SH HISTORY
 
255
BaseX started as a research project of the Database and Information Systems
 
256
Group (DBIS) at the University of Konstanz in 2005 and soon turned into a
 
257
feature-rich open source XML database and XPath/XQuery processor.
 
258
.SH LICENSE
 
259
New (3-clause) BSD License
 
260
.SH AUTHOR
 
261
BaseX is primarily developed by Christian Gruen <christian.gruen@gmail.com> with the help of others listed as
 
262
The BaseX Team on <http://basex.org/about-us/> 
 
263
.PP
 
264
The man page was written by Alexander Holupirek <alex@holupirek.de> in the progress of packaging BaseX for Debian GNU/Linux.