Changes between Version 36 and Version 37 of DatabaseBackend
- Timestamp:
- Jun 21, 2008, 1:20:20 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseBackend
v36 v37 47 47 * Run trac-admin to create a new Trac environment. When prompted for a Database connection string, use: 48 48 {{{ 49 postgres://user:pass@localhost:5432/dbname? host=/path/to/socket/dir49 postgres://user:pass@localhost:5432/dbname?schema=schemaname 50 50 }}} 51 51 52 52 Alternatively on UNIX, if the database is a local one, you can use UNIX sockets instead of TCP/IP: 53 53 {{{ 54 postgres://user:pass@/dbname?host=/path/to/unix/socket/dir 54 postgres://user:pass@/dbname?host=/path/to/unix/socket/dir&schema=schemaname 55 55 }}} 56 If 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 56 58 * Note: '?host=...' is optional. Check your postgresql.conf' unix_socket_directory option if you have connection problems. 57 59