--> --> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.6.6: /usr/bin/python
Sun May 20 08:51:29 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.

 /home4/twofivz6/public_html/w/notes.rholas.eu/index.py in ()
    6 import cgi
    7 
    8 conn = MySQLdb.connect(host = "localhost", user = "twofivz6_admin", passwd = "ef397b69_R", db = "twofivz6_pyblog")
    9 cursor = conn.cursor()
   10 cursor.execute("SET CHARACTER SET utf8")
conn undefined, MySQLdb = <module 'MySQLdb' from '/usr/lib64/python2.6/site-packages/MySQLdb/__init__.pyc'>, MySQLdb.connect = <function Connect>, host undefined, user undefined, passwd undefined, db undefined
 /usr/lib64/python2.6/site-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'twofivz6_pyblog', 'host': 'localhost', 'passwd': 'ef397b69_R', 'user': 'twofivz6_admin'})
   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': 'twofivz6_pyblog', 'host': 'localhost', 'passwd': 'ef397b69_R', 'user': 'twofivz6_admin'}
 /usr/lib64/python2.6/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 18cba90>, *args=(), **kwargs={'db': 'twofivz6_pyblog', 'host': 'localhost', 'passwd': 'ef397b69_R', 'user': 'twofivz6_admin'})
  186         kwargs2['client_flag'] = client_flag
  187 
  188         super(Connection, self).__init__(*args, **kwargs2)
  189 
  190         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 18cba90>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 18cba90>>, 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': 'twofivz6_pyblog', 'host': 'localhost', 'passwd': 'ef397b69_R', 'user': 'twofivz6_admin'}

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