MySQL Forums
Forum List  »  Connector/Python

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


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/", line 397, in main
commits = run_query(server, form_data, viewcvs_link)
File "/usr/local/viewcvs-1.0-dev/lib/", line 354, in run_query
File "/usr/local/viewcvs-1.0-dev/lib/", line 394, in RunQuery
File "/usr/lib/python2.4/site-packages/MySQLdb/", line 137, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/", line 33, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1046, 'No database selected')

Options: ReplyQuote

Written By
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.