Hoi mensen
Ik ben bezig met een trac doos, en ik wil daarmee mijn SVN repo's bekijken en van bug-tracks voorzien via een webpage (daar is trac voor bedoeld).
Echter wil ik wel dit met MySQL doen; ik wil namelijk mijn SVN userbackend hetzelfde houden als de trac userbase. (dit alles voor een schoolprojectje).
Ik heb een DB aangemaakt, en een werkende SVN repo. (SVN werkt nu nog gewoon met een passwd file).
Dit doe ik:
Die mysql-username+pass kloppen, net even met de cli interface ingelogd. Ik weet dat de MySQL support voor trac experimenteel is, maar postgresql is niet handig in deze situatie (het komt op een bestaande doos waar alleen mysql opzit).
Heeft iemand dit al eerder gezien enof getackled?
mysql-python is btw ge-emerged , en:
Ik ben bezig met een trac doos, en ik wil daarmee mijn SVN repo's bekijken en van bug-tracks voorzien via een webpage (daar is trac voor bedoeld).
Echter wil ik wel dit met MySQL doen; ik wil namelijk mijn SVN userbackend hetzelfde houden als de trac userbase. (dit alles voor een schoolprojectje).
Ik heb een DB aangemaakt, en een werkende SVN repo. (SVN werkt nu nog gewoon met een passwd file).
Dit doe ik:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
| servert boudewijn # trac-admin /var/lib/trac/subfonsion initenv Creating a new Trac environment at /var/lib/trac/subfonsion Trac will first ask a few questions about your environment in order to initalize and prepare the project database. Please enter the name of your project. This name will be used in page titles and descriptions. Project Name [My Project]> Subfonsion Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax). Database connection string [sqlite:db/trac.db]> mysql://trac:<KNIP>@localhost: 3306/trac Please specify the type of version control system, By default, it will be svn. If you don't want to use Trac with version control integration, choose the default here and don't specify a repository directory. in the next question. Repository type [svn]> Please specify the absolute path to the version control repository, or leave it blank to use Trac without a repository. You can also set the repository location later. Path to repository [/path/to/repos]> /var/svn/pva1 Please enter location of Trac page templates. Default is the location of the site-wide templates installed with Trac. Templates directory [/usr/share/trac/templates]> Creating and Initializing Project Failed to create environment. invalid literal for int(): Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 613, in do_initenv options=options) File "/usr/lib/python2.4/site-packages/trac/env.py", line 124, in __init__ self.create(options) File "/usr/lib/python2.4/site-packages/trac/env.py", line 229, in create DatabaseManager(self).init_db() File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 68, in init_db connector, args = self._get_connector() File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 84, in _get_connector scheme, args = _parse_db_str(self.connection_uri) File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 146, in _parse_db_str port = int(port) ValueError: invalid literal for int(): Failed to initialize environment. 1 Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 617, in do_initenv sys.exit(1) SystemExit: 1 |
Die mysql-username+pass kloppen, net even met de cli interface ingelogd. Ik weet dat de MySQL support voor trac experimenteel is, maar postgresql is niet handig in deze situatie (het komt op een bestaande doos waar alleen mysql opzit).
Heeft iemand dit al eerder gezien enof getackled?
mysql-python is btw ge-emerged , en:
code:
1
| [ebuild R ] dev-lang/python-2.4.3-r4 USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -nocxx -tk -ucs2" 0 kB |