| <class '_mysql_exceptions.OperationalError'> | Python 2.7.16: /usr/bin/python Wed Jun 10 02:40:33 2026 |
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/psmako.py in <module>() |
| 118 detailcompet(form['id'].value,form['compet'].value) |
| 119 else: |
| 120 index() |
| 121 else: |
| => 122 index() |
| index = <function index> |
| /home/damry/cgi-bin/psmako.py in index() |
| 17 |
| 18 def index(): |
| => 19 cur=getcursor() |
| 20 sql = "select nom,date_format(date,'%d-%m-%Y') from PS_compets order by date desc limit 1" |
| 21 cur.execute(sql) |
| cur undefined, global getcursor = <function getcursor> |
| /home/damry/cgi-bin/psmako.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'}) |
| 84 """Factory function for connections.Connection.""" |
| 85 from MySQLdb.connections import Connection |
| => 86 return Connection(*args, **kwargs) |
| 87 |
| 88 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 560934185030>, *args=(), **kwargs={'db': 'damry', 'host': 'mysql5-3', 'passwd': 'i2b3YJ5b', 'user': 'damry'}) |
| 202 self.waiter = kwargs2.pop('waiter', None) |
| 203 |
| => 204 super(Connection, self).__init__(*args, **kwargs2) |
| 205 self.cursorclass = cursorclass |
| 206 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 560934185030>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 560934185030>>, 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' (-2)")
args =
(2005, "Unknown MySQL server host 'mysql5-3' (-2)")
message =
''