MySQL Forums
Forum List  »  Connector/Python

Python Exception with ViewCVS and mySQL
Posted by: Fabrizio Machado
Date: November 12, 2005 07:32PM

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')

Options: ReplyQuote


Subject
Written By
Posted
Python Exception with ViewCVS and mySQL
November 12, 2005 07:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.