$ trac-admin $PWD/ucg-trac initenv
Creating a new Trac environment at /Users/reid24/codes/ucg-trac
Trac will first ask a few questions about your environment
in order to initialize 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]> UndergroundCoalGasification
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://root:root@localhost:8889/trac
Creating and Initializing Project
Initenv for '/Users/reid24/codes/ucg-trac' failed.
Failed to create environment.
(1049, "Unknown database 'trac'")
Traceback (most recent call last):
File "build/bdist.macosx-10.6-intel/egg/trac/admin/console.py", line 437, in do_initenv
options=options)
File "build/bdist.macosx-10.6-intel/egg/trac/core.py", line 124, in __call__
self.__init__(*args, **kwargs)
File "build/bdist.macosx-10.6-intel/egg/trac/env.py", line 262, in __init__
self.create(options)
File "build/bdist.macosx-10.6-intel/egg/trac/env.py", line 549, in create
DatabaseManager(self).init_db()
File "build/bdist.macosx-10.6-intel/egg/trac/db/api.py", line 239, in init_db
connector.init_db(**args)
File "build/bdist.macosx-10.6-intel/egg/trac/db/mysql_backend.py", line 111, in init_db
params)
File "build/bdist.macosx-10.6-intel/egg/trac/db/mysql_backend.py", line 92, in get_connection
cnx = MySQLConnection(path, log, user, password, host, port, params)
File "build/bdist.macosx-10.6-intel/egg/trac/db/mysql_backend.py", line 262, in __init__
port=port, charset='utf8', **opts)
File "build/bdist.macosx-10.6-intel/egg/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "build/bdist.macosx-10.6-intel/egg/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (1049, "Unknown database 'trac'")