Hi all,
Just trying tg for the first time. It looks promissing, but I'm having
some problems with the wiki20 demo tutorial. I bet that's the first
time you've heard that... ;-)
Running on a linux FC5 amd64. Used yum to install tg 0.8.9; using
Python 2.4.2 & mysql 5.0.21.
I ran the quickstart and the test-start.py and have the tg server
listening on :8080. I setup the dev.cfg to connect to a running mysql
install. I added the page object to the model.py script as indicated
and then restarted the server. All good so far. When I ran 'tg-admin
sql create' though it bombed with the error below...
But first, I'm assuming that when the tutorial says "Creating the
Database... we're ready to actually create it." It really means that
'tg-admin sql create' is really going to create the database and the
page table. I have not tried manually creating the database first,
cause there is no mention of that in the tutorial. What am I missing?
Thanks,
Matt
The error...
Traceback (most recent call last):
File "/usr/bin/tg-admin", line 7, in ?
sys.exit(
File
"/usr/lib/python2.4/site-packages/turbogears/command/__init__.py", line
186, in main
command.run()
File
"/usr/lib/python2.4/site-packages/turbogears/command/__init__.py", line
106, in run
command.the_runner.run(sys.argv)
File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py",
line 102, in run
runner.run()
File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py",
line 233, in run
self.command()
File "/usr/lib/python2.4/site-packages/sqlobject/manager/command.py",
line 551, in command
exists = soClass._connection.tableExists(soClass.sqlmeta.table)
File
"/usr/lib/python2.4/site-packages/sqlobject/mysql/mysqlconnection.py",
line 108, in tableExists
for (table,) in self.queryAll('SHOW TABLES'):
File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py",
line 316, in queryAll
return self._runWithConnection(self._queryAll, s)
File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py",
line 215, in _runWithConnection
conn = self.getConnection()
File "/usr/lib/python2.4/site-packages/sqlobject/dbconnection.py",
line 226, in getConnection
conn = self.makeConnection()
File
"/usr/lib/python2.4/site-packages/sqlobject/mysql/mysqlconnection.py",
line 43, in makeConnection
raise self.module.OperationalError(
_mysql_exceptions.OperationalError: (1049, "Unknown database
'testturbogears'"); used connection string: host=localhost, port=0,
db=testturbogears, user=root, pwd=*******
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---