OperationalError
Python 2.4.4: /usr/bin/python
Wed Jan 7 05:11:40 2009

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, with the most recent first.

OperationalError: (1049, "Unknown database 'xdaq'")

/usr/lib/python2.4/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 826d8f6c>, *args=(), **kwargs={'passwd': '', 'host': '69.59.150.100', 'db': 'xdaq', 'user': 'root'})
  161             
  162         kwargs2['client_flag'] = client_flag
  163 
  164         super(Connection, self).__init__(*args, **kwargs2)
  165 
  166         self.encoders = dict([ (k, v) for k, v in conv.items()
  167                                if type(k) is not int ])
super undefined, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 826d8f6c>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 826d8f6c>>, args = (), kwargs2 = {'client_flag': 196608, 'conv': {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x825e7454>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x825e73ac>, ...}, 'db': 'xdaq', 'host': '69.59.150.100', 'passwd': '', 'user': 'root'}
/usr/lib/python2.4/site-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'passwd': '', 'host': '69.59.150.100', 'db': 'xdaq', 'user': 'root'})
   72 def Connect(*args, **kwargs):
   73     """Factory function for connections.Connection."""
   74     from connections import Connection
   75     return Connection(*args, **kwargs)
   76 
   77 connect = Connection = Connect
   78 
Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'db': 'xdaq', 'host': '69.59.150.100', 'passwd': '', 'user': 'root'}
/usr/local/deployments/xdaq_prod/src/squeal.py in connect(self=<squeal.MySqlConnection instance at 0x8261c84c>)
   46         self.db = db
   47         self.connect()
   48     def connect(self) :
   49         self.conn = MySQLdb.connect(host=self.host,user=self.user,passwd=self.passwd,db=self.db)
   50     def close(self) :
   51         self.conn.close()
   52         self.conn = None
self = <squeal.MySqlConnection instance at 0x8261c84c>, self.conn undefined, global MySQLdb = <module 'MySQLdb' from '/usr/lib/python2.4/site-packages/MySQLdb/__init__.pyc'>, MySQLdb.connect = <function Connect at 0x82579614>, host undefined, self.host = '69.59.150.100', user undefined, self.user = 'root', passwd undefined, self.passwd = '', db undefined, self.db = 'xdaq'
/usr/local/deployments/xdaq_prod/src/squeal.py in __init__(self=<squeal.MySqlConnection instance at 0x8261c84c>, host='69.59.150.100', user='root', passwd='', db='xdaq')
   44         self.user = user
   45         self.passwd = passwd
   46         self.db = db
   47         self.connect()
   48     def connect(self) :
   49         self.conn = MySQLdb.connect(host=self.host,user=self.user,passwd=self.passwd,db=self.db)
   50     def close(self) :
self = <squeal.MySqlConnection instance at 0x8261c84c>, self.connect = <bound method MySqlConnection.connect of <squeal.MySqlConnection instance at 0x8261c84c>>
/usr/local/deployments/xdaq_prod/src/squeal.py in mySqlConnectionFactory(host='69.59.150.100', user='root', passwd='', db='xdaq')
   54         return self.conn.cursor(x)
   55 
   56 def mySqlConnectionFactory(host,user,passwd,db) :
   57     return MySqlConnection(host,user,passwd,db)
   58 
   59 # squeal -- light MySQL wrapper
   60 
global MySqlConnection = <class squeal.MySqlConnection at 0x825fef8c>, host = '69.59.150.100', user = 'root', passwd = '', db = 'xdaq'
/usr/local/deployments/xdaq_prod/src/qad.py in <lambda>()
   54         self.simonModifiers['c'] = lambda x : utils.cgiEscape(x)
   55         self.simonModifiers['strip_quotes'] = lambda x : x.replace("'","").replace('"','')
   56         self.simonModifiers['nbsp'] = lambda x : x.replace(" ","&nbsp;")
   57         self.mySqlConnectionPool = squeal.ConnectionPool(lambda : squeal.mySqlConnectionFactory(self.config.get('db','host'),self.config.get('db','user'),self.config.get('db','password'),self.config.get('db','db')),5,28800)
   58         self.templates = {}
   59         self.pages = {}
   60         self.logic = logic.Logic(self.config,self.logger)
self = <qad.Application instance at 0x82685f2c>, self.mySqlConnectionPool = <squeal.ConnectionPool instance at 0x82677fac>, global squeal = <module 'squeal' from '/usr/local/deployments/xdaq_prod/src/web//../squeal.py'>, squeal.ConnectionPool = <class squeal.ConnectionPool at 0x825fef5c>, squeal.mySqlConnectionFactory = <function mySqlConnectionFactory at 0x82579a04>, self.config = <MyConfig.MyConfig instance at 0x82685ccc>, self.config.get = <bound method MyConfig.get of <MyConfig.MyConfig instance at 0x82685ccc>>
/usr/local/deployments/xdaq_prod/src/squeal.py in get(self=<squeal.ConnectionPool instance at 0x82677fac>, block=0)
   29                 return obj
   30 
   31         except Empty:
   32             return self.constructor()
   33 
   34     def put(self, obj, block=0):
   35 
self = <squeal.ConnectionPool instance at 0x82677fac>, self.constructor = <function <lambda> at 0x825ee2cc>
/usr/local/deployments/xdaq_prod/src/qad.py in getDbConnectionFromPool(self=<qad.Application instance at 0x82685f2c>)
  105         return str(self.rng.randint(10000000,99999999))
  106 
  107     def getDbConnectionFromPool(self) :
  108         return self.mySqlConnectionPool.get()
  109 
  110     def returnDbConnectionToPool(self,conn) :
  111         self.mySqlConnectionPool.put(conn)
self = <qad.Application instance at 0x82685f2c>, self.mySqlConnectionPool = <squeal.ConnectionPool instance at 0x82677fac>, self.mySqlConnectionPool.get = <bound method ConnectionPool.get of <squeal.ConnectionPool instance at 0x82677fac>>
/usr/local/deployments/xdaq_prod/src/qad.py in process(self=<qad.RequestHandler object at 0x8261c94c>, req=<jon_modpy.Request object at 0x824f5d8c>)
  369         self.prefs = {}
  370         self.isPrefsDirty = 0
  371 
  372         self.dbConnection = self.app.getDbConnectionFromPool()
  373         self.squeal = squeal.Squeal(self.dbConnection,lambda s : self.logInfo('SQUEAL\t' + s))
  374 
  375         http_host = req.environ.get('HTTP_HOST','')
self = <qad.RequestHandler object at 0x8261c94c>, self.dbConnection undefined, self.app = <qad.Application instance at 0x82685f2c>, self.app.getDbConnectionFromPool = <bound method Application.getDbConnectionFromPool of <qad.Application instance at 0x82685f2c>>
/usr/local/deployments/xdaq_prod/src/web/jon_modpy.py in process(self=<jon_modpy.Request object at 0x824f5d8c>, modpy_req=<mp_request object at 0x8260177c>)
  104       self.traceback()
  105     else:
  106       try:
  107         handler.process(self)
  108       except:
  109         handler.traceback(self)
  110     self.flush()
handler = <qad.RequestHandler object at 0x8261c94c>, handler.process = <bound method RequestHandler.process of <qad.RequestHandler object at 0x8261c94c>>, self = <jon_modpy.Request object at 0x824f5d8c>