Changes between Version 11 and Version 12 of TracEnvironment
- Timestamp:
- Oct 19, 2019, 12:50:53 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracEnvironment
v11 v12 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', '')" … … 78 78 }}} 79 79 80 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]. 81 81 Generally, the following is sufficient to create a database user named `tracuser` and a database named `trac`: 82 82 {{{#!sh