Hi, I don't want this error happen. Please, Can you teach me how to
avoid this error with MySQL in WebFaction?

Traceback (most recent call last):
  File "/home/user/webapps/app/web2py/gluon/restricted.py", line 178,
in restricted
    exec ccode in environment
  File "/home/user/webapps/app/web2py/applications/init/models/db.py",
line 16, in <module>
    db=SQLDB('mysql://user_app:xxxxx...@127.0.0.1/
user_app',pool_size=10)
  File "/home/user/webapps/app/web2py/gluon/sql.py", line 740, in
__init__
    self._execute('SET FOREIGN_KEY_CHECKS=0;')
  File "/home/user/webapps/app/web2py/gluon/sql.py", line 739, in
<lambda>
    self._execute = lambda *a, **b: self._cursor.execute(*a, **b)
  File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 166, in
execute
    self.errorhandler(self, exc, value)
  File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 35,
in defaulterrorhandler
    raise errorclass, errorvalue
OperationalError: (2006, 'MySQL server has gone away')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to