Changes between Version 4 and Version 5 of TracEnvironment
- Timestamp:
- Feb 1, 2021, 2:06:05 PM (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 ://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`.8 Trac supports [https://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`. 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 ://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 [https://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. 55 57 56 58 === PostgreSQL Connection String … … 76 78 }}} 77 79 78 See the [http ://www.postgresql.org/docs/ PostgreSQL documentation] for detailed instructions on how to administer [http://postgresql.orgPostgreSQL].80 See the [https://www.postgresql.org/docs/ PostgreSQL documentation] for detailed instructions on how to administer [https://www.postgresql.org/ PostgreSQL]. 79 81 Generally, the following is sufficient to create a database user named `tracuser` and a database named `trac`: 80 82 {{{#!sh