Hello everybody,

when I'm trying to initialise a new Trac projet using :
trac-admin /srv/http/trac/test initenv test mysql://tracuser:[EMAIL 
PROTECTED]:3307/tracdb
svn /srv/svn/test /usr/share/trac/templates

I have the following error message (I know what this message means,
but please read below) :
Creating and Initializing Project
Failed to create environment. (1045, "Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES)")
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line
613, in do_initenv
    options=options)
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 145, in
__init__
    self.create(options)
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 250, in
create
    DatabaseManager(self).init_db()
  File "/usr/lib/python2.3/site-packages/trac/db/api.py", line 70, in
init_db
    connector.init_db(**args)
  File "/usr/lib/python2.3/site-packages/trac/db/mysql_backend.py",
line 44, in init_db
    cnx = self.get_connection(path, user, password, host, port,
params)
  File "/usr/lib/python2.3/site-packages/trac/db/mysql_backend.py",
line 40, in get_connection
    return MySQLConnection(path, user, password, host, port, params)
  File "/usr/lib/python2.3/site-packages/trac/db/mysql_backend.py",
line 147, in __init__
    host=host, port=port, charset='utf8')
  File "build/bdist.linux-i686/egg/MySQLdb/__init__.py", line 74, in
Connect
  File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 170,
in __init__
OperationalError: (1045, "Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES)")
Failed to initialize environment. 1
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line
617, in do_initenv
    sys.exit(1)
SystemExit: 1

The fact is I can connect with command-line mysql client using these
username and password :
bin/mysql --user=tracuser --protocol=SOCKET --socket=tmp/mysql.sock -p
bin/mysql --user=tracuser --protocol=TCP --port=3307 -p
are both working.
I created tracuser with the command :
GRANT ALL ON tracdb.* TO [EMAIL PROTECTED] IDENTIFIED BY 'password' ;
I since tried to :
GRANT ALL ON tracdb.* TO tracuser ;
GRANT ALL ON tracdb.* TO [EMAIL PROTECTED] ;
GRANT ALL ON tracdb.* TO [EMAIL PROTECTED] ;
then I FLUSHed PRIVILEGES ; without any effect, even tried to restart
MySQL daemon.

I tried to connect to tracdb with these username and password with
PHP, and it worked too.

There is another MySQL daemon listening on port 3306 with an older
version (4.0.24) ; this is why I use port 3307. It would be difficult
for me to use SQLite instead considering the fact that this is at
work :-/

What could I have forgot to check ?

Environment information :
Red Hat Enterprise Linux ES release 4
Kernel 2.6.9-22.0.1.ELsmp
Python 2.3.4
MySQL 5.0.51
MySQL-python 1.2.2
Trac 0.10.4
Apache httpd 2.2.6
mod_python 3.3.1
swig 1.3.29
Subversion 1.4.6
zlib 1.2.3
clearsilver 0.10.5
Genshi 0.4.4
Pygments 0.8.1

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to