Python Exception with ViewCVS and mySQL
Hello,
I have a collection of python scripts which allow mysql querying of my cvs repository via the viewcvs web front end. Ultimately, I'm receiving a 'No database selected error' from mysql. However, I know the database exists, and can confirm it with mysql show. Can anyone point me in the right direction?
Here is the traceback:
Traceback (most recent call last):
File "/usr/local/viewcvs-1.0-dev/lib/query.py", line 397, in main
commits = run_query(server, form_data, viewcvs_link)
File "/usr/local/viewcvs-1.0-dev/lib/query.py", line 354, in run_query
db.RunQuery(query)
File "/usr/local/viewcvs-1.0-dev/lib/cvsdb.py", line 394, in RunQuery
cursor.execute(sql)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 137, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 33, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1046, 'No database selected')