[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2 Database URL

Anubis database is identified by its URL, or Universal Resource Locator. A URL consists of following elements (square brackets enclose optional elements):

 
proto://[[user[:password]@]host]/path[params]

The detailed description of each URL part follows:

proto
Specifies a database protocol. The protocol describes how the database is to be accessed. In a way, it may be regarded as specifying the database type. Currently, GNU Anubis supports following database protocols:

`text' A plain text file, containing users' credentials.
`gdbm' GDBM database
`mysql' MySQL database
`pgsql' PostgreSQL database
`postgres' Alias for `pgsql'.

These protocols are described in detail below.

user
User name necessary to access the database.

password
User password necessary to access the database.

host
Domain name or IP address of a machine running the database.

path
A path to the database. The exact meaning of this element depends on the database protocol. It is described in detail when discussing particular database protocols.

params
A list of protocol-dependent parameters. Each parameter is of the form keyword=name, parameters are separated by semicolons.

4.2.1 Plain text databases  
4.2.2 Databases in GDBM format  
4.2.3 MySQL and PostgreSQL  MySQL and PostgreSQL databases



This document was generated by Wojciech Polak on December, 18 2004 using texi2html