prateek gupta
2018-11-14 10:12:06 UTC
Hi All,
I am using Django 2.0.6, Python 3.6. For connecting with Mysql 5.7 I am
using mysqlclient 1.3.12.
Using above environment I have created an admin panel for CRUD operations.
When I select a tabel for viewing it's content following error shows-
django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server
during query')
The above error comes only for one table, rest all are working fine.
I tried to set the max_allowed_packet=67108864 in mysql configuration file
and in settings.py I have set the CONN_MAX_AGE=6000 but it is not working.
Have anyone faced the same issue?
Let me know if anyone knows how to solve this.
Thanks,
Prateek
I am using Django 2.0.6, Python 3.6. For connecting with Mysql 5.7 I am
using mysqlclient 1.3.12.
Using above environment I have created an admin panel for CRUD operations.
When I select a tabel for viewing it's content following error shows-
django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server
during query')
The above error comes only for one table, rest all are working fine.
I tried to set the max_allowed_packet=67108864 in mysql configuration file
and in settings.py I have set the CONN_MAX_AGE=6000 but it is not working.
Have anyone faced the same issue?
Let me know if anyone knows how to solve this.
Thanks,
Prateek
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/26050b0b-164e-41d1-bd25-7a5d5c29f003%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/26050b0b-164e-41d1-bd25-7a5d5c29f003%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.