--> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.7.9: /usr/bin/python
Thu Apr 25 09:43:24 2024

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/damry/cgi-bin/fbs-ps.py in ()
    113   elif page=='psdetail':
    114     if form.has_key('licence'):
=>  115       psdetail(form['licence'].value)
    116   elif page=='detailcompet':
    117     if form.has_key('id') and form.has_key('compet'):
psdetail = <function psdetail>, form = FieldStorage(None, None, [MiniFieldStorage('page...etail'), MiniFieldStorage('licence', '6022687')]), ].value = [MiniFieldStorage('page', 'psdetail'), MiniFieldStorage('licence', '6022687')]
 /home/damry/cgi-bin/fbs-ps.py in psdetail(licence='6022687')
     68 
     69 def psdetail(licence):
=>   70   cur=getcursor()
     71   sql="select * from PS_joueurs where licence=%s" % licence
     72   cur.execute(sql)
cur undefined, global getcursor = <function getcursor>
 /home/damry/cgi-bin/fbs-ps.py in getcursor()
     13 def getcursor():
     14   import MySQLdb
=>   15   con=MySQLdb.connect(host="mysql5-3",db="damry",user="damry",passwd="i2b3YJ5b")
     16   return con.cursor()
     17 
con undefined, MySQLdb = <module 'MySQLdb' from '/usr/lib/python2.7/dist-packages/MySQLdb/__init__.pyc'>, MySQLdb.connect = <function Connect>, host undefined, db undefined, user undefined, passwd undefined
 /usr/lib/python2.7/dist-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'damry', 'host': 'mysql5-3', 'passwd': 'i2b3YJ5b', 'user': 'damry'})
     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': 'damry', 'host': 'mysql5-3', 'passwd': 'i2b3YJ5b', 'user': 'damry'}
 /usr/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 848d934>, *args=(), **kwargs={'db': 'damry', 'host': 'mysql5-3', 'passwd': 'i2b3YJ5b', 'user': 'damry'})
    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 848d934>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 848d934>>, 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': 'damry', 'host': 'mysql5-3', 'passwd': 'i2b3YJ5b', 'user': 'damry'}

<class '_mysql_exceptions.OperationalError'>: (2005, "Unknown MySQL server host 'mysql5-3' (0)")
      args = (2005, "Unknown MySQL server host 'mysql5-3' (0)")
      message = ''