On 04/07/14 05:04, Zemian Deng wrote:
Zemian - I've run into this also (I think), but the problem showed up in a different way. First, after the mysql connection timeout expired, django would throw a "MySQL Connection not available" exception when trying to access the server. Second, it would throw the same exception when trying to access the server after the server had been restarted. This was all with CONN_MAX_AGE=0 which as you say should make django open and close a connection on each request. I didn't have time to research things further, but it seems to me that the issue is with mysql.connector.django i.e. mysql connector/python - it is somehow keeping its connection open client-side and when that connection goes away server-side then it gives up. I tried to bring the problem to the attention of the developer on his blog but he didn't respond. I guess a bug report should be posted instead. Anyway, these problems, coupled with some unsolvable timezone issues when trying to use mezzanine django cms with mysql connector/python, forced me to switch to postgresql, which is working very well so far. Good luck. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/53B6363A.8090601%40gmail.com. For more options, visit https://groups.google.com/d/optout. |
- Mysql connections after started django app Zemian Deng
- Re: Mysql connections after started django ap... cercatrova2
- Re: Mysql connections after started djang... Zemian Deng
- Re: Mysql connections after started d... cercatrova2
- Re: Mysql connections after start... François Schiettecatte
- Re: Mysql connections after ... Zemian Deng
- Re: Mysql connections af... François Schiettecatte
- Re: Mysql connection... Zemian Deng
- Re: Mysql connections after start... Zemian Deng