List Info

Thread: Dreamhost, Django and MySQL server connection




Dreamhost, Django and MySQL server connection
user name
2006-02-14 19:32:18
Edgars Jekabsons wrote:
> Hi Kieran,
>
> I posted a working patch against Django release 0.91 on
the same ticket
> http://code.
djangoproject.com/ticket/463

Thanks Edgars,

Unfortunately your patch can't get committed as-is either
because it is
against 0.91 and there have been a few changes since then.
The Django
devs are much wiser than to use MySQL ;) so it really needs
to work
with the latest version of trunk in svn to stand a chance.

Anyone running a patch against svn?

Cheers,
Kieran

Dreamhost, Django and MySQL server connection
user name
2006-02-14 20:34:47
OK, posted a patch agaist trunk (revision 2307)
http://code.djangoproject.com/attachment/t
icket/463/mysql_rev2307.diff

--
Edgars

Dreamhost, Django and MySQL server connection
user name
2006-02-15 02:23:05
I was also experiencing sql disconnect errors with
Dreamhost.  I have
just updated my site http://www.socialis
tsoftware.com/ to use this
patch.

We will see how it goes.

Dreamhost, Django and MySQL server connection
user name
2006-02-16 19:51:29
I have been running this patch for almost 2 days, and I just
got my
first "lost connection"

Traceback (most recent call last):

 File
"/home/skabber/python/django/core/handlers/base.py&qu
ot;, line 74, in
get_response
   response = callback(request, *callback_args,
**callback_kwargs)

 File
"/home/skabber/python/skabber/apps/blog/views.py"
;, line 7, in
index
   tags = blog.tags.get_list()

 File
"/home/skabber/django/trunk/django/utils/functional.py
", line 3,
in _curried
   return args[0](*(args[1:]+moreargs),
**dict(kwargs.items() +
morekwargs.items()))

 File
"/home/skabber/python/django/core/meta/__init__.py&qu
ot;, line 1395,
in function_get_list
   return list(function_get_iterator(opts, klass, **kwargs))

 File
"/home/skabber/python/django/core/meta/__init__.py&qu
ot;, line 1376,
in function_get_iterator
   cursor = db.db.cursor()

 File
"/home/skabber/python/django/core/db/backends/mysql.py
", line
106, in cursor
   connection = self.__connect()

 File
"/home/skabber/python/django/core/db/backends/mysql.py
", line 97,
in __connect
   connection = Database.connect(**kwargs)

 File
"/usr/lib/python2.3/site-packages/MySQLdb/__init__.py
", line 66,
in Connect
   return Connection(*args, **kwargs)

 File
"/usr/lib/python2.3/site-packages/MySQLdb/connections.
py", line
134, in __init__
   super(Connection, self).__init__(*args, **kwargs2)

OperationalError: (2013, 'Lost connection to MySQL server
during query')


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Dreamhost, Django and MySQL server connection
user name
2006-02-17 07:35:26
jayskabber.com wrote:
> I have been running this patch for almost 2 days, and I
just got my
> first "lost connection"

So far my "lost connections" could be traced to
Dreamhost rebooting 
servers. I suggest to follow up with them to trace a reason.

Thanks,

Eugene


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )