Changes between Version 4 and Version 5 of TracEnvironment
- Timestamp:
- 12/24/20 10:50:34 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracEnvironment
v4 v5 6 6 Trac uses a directory structure and a database for storing project data. The directory is referred to as the '''environment'''. 7 7 8 Trac supports [http s://www.sqlite.org/ SQLite], [https://www.postgresql.org/ PostgreSQL] and [https://www.mysql.com/ MySQL] databases. With PostgreSQL and MySQL you have to create the database before running `trac-admin initenv`.8 Trac supports [http://sqlite.org/ SQLite], [http://www.postgresql.org/ PostgreSQL] and [http://mysql.com/ MySQL] databases. With PostgreSQL and MySQL you have to create the database before running `trac-admin initenv`. 9 9 10 10 == Creating an Environment … … 40 40 You will need to specify a database connection string at the time the environment is created. The default is SQLite, which is sufficient for most projects. The SQLite database file is stored in the environment directory, and can easily be [wiki:TracBackup backed up] together with the rest of the environment. 41 41 42 Note that if the username or password of the connection string (if applicable) contains the `:`, `/` or `@` characters, they need to be [http s://meyerweb.com/eric/tools/dencoder/ URL encoded].42 Note that if the username or password of the connection string (if applicable) contains the `:`, `/` or `@` characters, they need to be [http://meyerweb.com/eric/tools/dencoder/ URL encoded]. 43 43 {{{#!sh 44 44 $ python -c "import urllib; print urllib.quote('password@:/123', '')" … … 53 53 }}} 54 54 where `db/trac.db` is the path to the database file within the Trac environment. 55 56 See [trac:DatabaseBackend#SQLite] for more information.57 55 58 56 === PostgreSQL Connection String … … 78 76 }}} 79 77 80 See the [http s://www.postgresql.org/docs/ PostgreSQL documentation] for detailed instructions on how to administer [https://www.postgresql.org/PostgreSQL].78 See the [http://www.postgresql.org/docs/ PostgreSQL documentation] for detailed instructions on how to administer [http://postgresql.org PostgreSQL]. 81 79 Generally, the following is sufficient to create a database user named `tracuser` and a database named `trac`: 82 80 {{{#!sh