--> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.6.6: /usr/bin/python
Tue Jan 22 14:51:27 2019

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

 /home/piford/public_html/cgi-bin/HelpZone/user.py in ()
   11 
   12 import cgitb; cgitb.enable()
   13 import profilefunc
   14 
   15 html1="""<!DOCTYPE html>
profilefunc undefined
 /home/piford/public_html/cgi-bin/HelpZone/profilefunc.py in ()
   12 import cgitb; cgitb.enable()
   13 
   14 db = MySQLdb.connect("piford.in","piford_student","student123","piford_helpzone" )
   15 cursor=db.cursor()
   16 
db undefined, MySQLdb = None, MySQLdb.connect undefined
 /usr/lib64/python2.6/site-packages/MySQLdb/__init__.py in Connect(*args=('piford.in', 'piford_student', 'student123', 'piford_helpzone'), **kwargs={})
   79     """Factory function for connections.Connection."""
   80     from MySQLdb.connections import Connection
   81     return Connection(*args, **kwargs)
   82 
   83 connect = Connection = Connect
Connection = <class 'MySQLdb.connections.Connection'>, args = ('piford.in', 'piford_student', 'student123', 'piford_helpzone'), kwargs = {}
 /usr/lib64/python2.6/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 15db6a0>, *args=('piford.in', 'piford_student', 'student123', 'piford_helpzone'), **kwargs={})
  191         autocommit = kwargs2.pop('autocommit', False)
  192 
  193         super(Connection, self).__init__(*args, **kwargs2)
  194         self.cursorclass = cursorclass
  195         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 15db6a0>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 15db6a0>>, args = ('piford.in', 'piford_student', 'student123', 'piford_helpzone'), 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>, ...}}

<class '_mysql_exceptions.OperationalError'>: (2003, "Can't connect to MySQL server on 'piford.in' (111)")
      args = (2003, "Can't connect to MySQL server on 'piford.in' (111)")
      message = ''