#21597: (2006, 'MySQL server has gone away') in django1.6 when wait_timeout
passed
-------------------------------------+-------------------------------------
Reporter: ekeydar@… | Owner: err
Type: Bug | Status: assigned
Component: Database layer | Version: 1.6
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: mysql | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by timo):
* cc: timo (added)
* has_patch: 0 => 1
Comment:
When I run the MySQL tests using djangocore-box, I get the traceback below
when the test suite concludes. The PR above resolves this error.
{{{
Traceback (most recent call last):
File "/django/tests/runtests.py", line 374, in <module>
options.failfast, args)
File "/django/tests/runtests.py", line 216, in django_tests
test_labels or get_installed(), extra_tests=extra_tests)
File "/django/django/test/runner.py", line 149, in run_tests
self.teardown_databases(old_config)
File "/django/django/test/runner.py", line 124, in teardown_databases
connection.creation.destroy_test_db(old_name, self.verbosity)
File "/django/django/db/backends/creation.py", line 452, in
destroy_test_db
self._destroy_test_db(test_database_name, verbosity)
File "/django/django/db/backends/creation.py", line 466, in
_destroy_test_db
% self.connection.ops.quote_name(test_database_name))
File "/django/django/db/backends/utils.py", line 59, in execute
return self.cursor.execute(sql, params)
File "/django/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/django/django/db/backends/utils.py", line 57, in execute
return self.cursor.execute(sql)
File "/django/django/db/backends/mysql/base.py", line 128, in execute
return self.cursor.execute(query, args)
File "/home/vagrant/.virtualenvs/py2.7/local/lib/python2.7/site-
packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/home/vagrant/.virtualenvs/py2.7/local/lib/python2.7/site-
packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.OperationalError: (2006, 'MySQL server has gone away')
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21597#comment:19>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/075.fdfb702e30827e1221003267a26f1904%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.