DCS Patch Graphs
--> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.6.6: /usr/bin/python
Wed May 16 06:58:59 2012

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /Dcs/staff/dcs/public_html/cgi-bin/getgraph.cgi in ()
   16 #db = MySQLdb.connect(host='dcs.nac.uci.edu',db="patches")
   17 #db = MySQLdb.connect(user='root',host='localhost',db="patches",unix_socket='/tmp/mysql.socket')
   18 db = MySQLdb.connect(user='root',host='localhost',db="patches",unix_socket='/var/lib/mysql/mysql.sock')
   19 month=["dummy","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
   20 def get_date(lines):
db undefined, MySQLdb = <module 'MySQLdb' from '/usr/lib/python2.6/site-packages/MySQLdb/__init__.pyc'>, MySQLdb.connect = <function Connect>, user undefined, host undefined, unix_socket undefined
 /usr/lib/python2.6/site-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'patches', 'host': 'localhost', 'unix_socket': '/var/lib/mysql/mysql.sock', 'user': 'root'})
   79     """Factory function for connections.Connection."""
   80     from connections import Connection
   81     return Connection(*args, **kwargs)
   82 
   83 connect = Connection = Connect
Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'db': 'patches', 'host': 'localhost', 'unix_socket': '/var/lib/mysql/mysql.sock', 'user': 'root'}
 /usr/lib/python2.6/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 96da8b4>, *args=(), **kwargs={'db': 'patches', 'host': 'localhost', 'unix_socket': '/var/lib/mysql/mysql.sock', 'user': 'root'})
  185         kwargs2['client_flag'] = client_flag
  186 
  187         super(Connection, self).__init__(*args, **kwargs2)
  188 
  189         self.encoders = dict([ (k, v) for k, v in conv.items()
builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 96da8b4>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 96da8b4>>, 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>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None>, ...}, 'db': 'patches', 'host': 'localhost', 'unix_socket': '/var/lib/mysql/mysql.sock', 'user': 'root'}

<class '_mysql_exceptions.OperationalError'>: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")
      args = (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")
      message = ''