Edgewall Software

Changes between Version 36 and Version 37 of DatabaseBackend


Ignore:
Timestamp:
Jun 21, 2008, 1:20:20 AM (16 years ago)
Author:
carlos@…
Comment:

Clarified PSQL connection string.

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBackend

    v36 v37  
    4747 * Run trac-admin to create a new Trac environment.  When prompted for a Database connection string, use:
    4848{{{
    49 postgres://user:pass@localhost:5432/dbname?host=/path/to/socket/dir
     49postgres://user:pass@localhost:5432/dbname?schema=schemaname
    5050}}}
    5151
    5252Alternatively on UNIX, if the database is a local one, you can use UNIX sockets instead of TCP/IP:
    5353{{{
    54 postgres://user:pass@/dbname?host=/path/to/unix/socket/dir
     54postgres://user:pass@/dbname?host=/path/to/unix/socket/dir&schema=schemaname
    5555}}}
     56If you're using user trac without a password to connect through unix sockets to database trac and have only one project (hence no need for different schemas), your connections string would be ''postgres://trac:@/trac''
     57
    5658 * Note: '?host=...' is optional. Check your postgresql.conf' unix_socket_directory option if you have connection problems.
    5759