us ru bg
--> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.7.3: /usr/bin/python
Mon Sep 22 15:13:36 2014

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

 /var/www/sgames-cgi/index.py in ()
     19 
     20 sgamessite.PrintHTMLHeader()
     21 sgamessite.PrintFasTableNotebook(0)
=>   22 sgamessite_home.PrintHomeHTML()
     23 sgamessite.PrintFasTableNotebookClose()
sgamessite_home = <module 'sgamessite_home' from '/var/www/sgames-cgi/sgamessite_home.pyc'>, sgamessite_home.PrintHomeHTML = <function PrintHomeHTML>
 /var/www/sgames-cgi/sgamessite_home.py in PrintHomeHTML()
     14 
     15 def PrintHomeHTML():
=>   16     connection=MySQLdb.connect(db=dbinfo.db_sgames,user=dbinfo.user_sgames,passwd=dbinfo.passwd_sgames)
     17     connection.set_character_set("utf8")
     18     cursor=connection.cursor()
connection undefined, global MySQLdb = <module 'MySQLdb' from '/usr/lib/python2.7/dist-packages/MySQLdb/__init__.pyc'>, MySQLdb.connect = <function Connect>, db undefined, global dbinfo = <module 'dbinfo' from '/var/www/sgames-cgi/dbinfo.pyc'>, dbinfo.db_sgames = 'SGames', user undefined, dbinfo.user_sgames = 'SGames', passwd undefined, dbinfo.passwd_sgames = 'layp5417Q'
 /usr/lib/python2.7/dist-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'SGames', 'passwd': 'layp5417Q', 'user': 'SGames'})
     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': 'SGames', 'passwd': 'layp5417Q', 'user': 'SGames'}
 /usr/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at e55fc0>, *args=(), **kwargs={'db': 'SGames', 'passwd': 'layp5417Q', 'user': 'SGames'})
    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 e55fc0>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at e55fc0>>, 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': 'SGames', 'passwd': 'layp5417Q', 'user': 'SGames'}

<class '_mysql_exceptions.OperationalError'>: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
      args = (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
      message = ''