Opened 18 years ago
Closed 18 years ago
#644 closed defect (invalid)
Unable to connect to mysql db
Reported by: | Owned by: | Brad Anderson | |
---|---|---|---|
Priority: | high | Component: | DbAuthPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.9 |
Description
Oops...
Trac detected an internal error:
Database "mysql://trac:trac@localhost/tracdb" not found. Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
dispatch_request(mpr.path_info, mpr, env)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 80, in dispatch
req.perm = PermissionCache(self.env, req.authname)
File "/usr/local/lib/python2.4/site-packages/trac/perm.py", line 276, in init
self.perms = PermissionSystem(env).get_user_permissions(username)
File "/usr/local/lib/python2.4/site-packages/trac/perm.py", line 132, in get_user_permissions
for perm in self.store.get_user_permissions(username):
File "/usr/local/lib/python2.4/site-packages/trac/perm.py", line 208, in get_user_permissions
subjects += list(provider.get_permission_groups(username))
File "build/bdist.freebsd-6.0-RELEASE-i386/egg/dbauth/perm.py", line 36, in get_permission_groups
File "build/bdist.freebsd-6.0-RELEASE-i386/egg/dbauth/env.py", line 26, in get_db
all = ['Environment', 'IEnvironmentSetupParticipant', 'open_environment']
File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 260, in init
raise TracError, 'Database "%s" not found.' % path
TracError: Database "mysql://trac:trac@localhost/tracdb" not found.
from http://trac.guu.dk/Vejlso
mysql -u trac -ptrack tracdb works fine - so seem to be a problem with the .py file..
DbAuth < 0.10 doesn't work with any DB except SQLite