Changes between Version 2 and Version 3 of TracEnvironment


Ignore:
Timestamp:
12/24/20 10:50:41 (4 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracEnvironment

    v2 v3  
    66Trac uses a directory structure and a database for storing project data. The directory is referred to as the '''environment'''.
    77
    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`.
     8Trac 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`.
    99
    1010== Creating an Environment
     
    4040You 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.
    4141
    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].
     42Note 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].
    4343{{{#!sh
    4444$ python -c "import urllib; print urllib.quote('password@:/123', '')"
     
    5353}}}
    5454where `db/trac.db` is the path to the database file within the Trac environment.
    55 
    56 See [trac:DatabaseBackend#SQLite] for more information.
    5755
    5856=== PostgreSQL Connection String
     
    7876}}}
    7977
    80 See the [https://www.postgresql.org/docs/ PostgreSQL documentation] for detailed instructions on how to administer [https://www.postgresql.org/ PostgreSQL].
     78See the [http://www.postgresql.org/docs/ PostgreSQL documentation] for detailed instructions on how to administer [http://postgresql.org PostgreSQL].
    8179Generally, the following is sufficient to create a database user named `tracuser` and a database named `trac`:
    8280{{{#!sh