<class '_mysql_exceptions.OperationalError'> | Python 2.6.6: /usr/bin/python2 Tue Feb 19 15:37:28 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/content/44/11738044/html/cgi-bin/treasure/loader.py in |
5 import sys |
6 #import treasuresqlNew as treasuresql |
7 import treasuresql |
8 import time |
9 form=cgi.FieldStorage() |
treasuresql undefined |
/home/content/44/11738044/html/cgi-bin/treasure/treasuresql.py in |
56 return self.fetchall()[0][0] |
57 |
58 class globals: |
59 con=sql() |
60 |
builtin globals = <built-in function globals> |
/home/content/44/11738044/html/cgi-bin/treasure/treasuresql.py in globals() |
57 |
58 class globals: |
59 con=sql() |
60 |
61 class load_db_from_file(sql): |
con undefined, global sql = None |
/home/content/44/11738044/html/cgi-bin/treasure/treasuresql.py in __init__(self=<treasuresql.sql instance>) |
10 class sql: |
11 def __init__(self): |
12 self.connect() |
13 pass |
14 #connect to the database |
self = <treasuresql.sql instance>, self.connect = <bound method sql.connect of <treasuresql.sql instance>> |
/home/content/44/11738044/html/cgi-bin/treasure/treasuresql.py in connect(self=<treasuresql.sql instance>) |
18 user="cherilovesme", |
19 passwd="treasure123", |
20 db="cherilovesme" |
21 ) |
22 self.cursor=self.sql.cursor() |
db undefined |
/usr/lib/python2.6/site-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'cherilovesme', 'host': 'mysql177.secureserver.net', 'passwd': 'treasure123', 'user': 'cherilovesme'}) |
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': 'cherilovesme', 'host': 'mysql177.secureserver.net', 'passwd': 'treasure123', 'user': 'cherilovesme'} |
/usr/lib/python2.6/site-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at a0dcb44>, *args=(), **kwargs={'db': 'cherilovesme', 'host': 'mysql177.secureserver.net', 'passwd': 'treasure123', 'user': 'cherilovesme'}) |
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 a0dcb44>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at a0dcb44>>, 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': 'cherilovesme', 'host': 'mysql177.secureserver.net', 'passwd': 'treasure123', 'user': 'cherilovesme'} |
<class '_mysql_exceptions.OperationalError'>: (2005, "Unknown MySQL server host 'mysql177.secureserver.net' (1)")
args =
(2005, "Unknown MySQL server host 'mysql177.secureserver.net' (1)")
message =
''