I have an error "cannot connect to mysql server" but the server is up
and running, I can connect with mysqladmin

this happens after an upgrade to  version 096 or after (don't know
exactly the build number)


there seem to be an "error in formatting" in django code


         return self.get_query_set().get(*args, **kwargs) ...
▼ Local vars
Variable        Value
args
()
kwargs
{'expire_date__gt': datetime.datetime(2007, 6, 24, 13, 17, 50,
187000), 'session_key': 'b8af7f79e7688c3090ef729e2154477a'}
self
<django.contrib.sessions.models.SessionManager object at 0x05354ED0>
C:\Python24\lib\site-packages\django\db\models\query.py in get
        obj_list = list(clone) ...
▼ Local vars
Variable        Value
args
()
clone
Error in formatting:(2003, "Can't connect to MySQL server on
'localhost' (10055)")
kwargs
{'expire_date__gt': datetime.datetime(2007, 6, 24, 13, 17, 50,
187000), 'session_key': 'b8af7f79e7688c3090ef729e2154477a'}
self
Error in formatting:(2003, "Can't connect to MySQL server on
'localhost' (10055)")
C:\Python24\lib\site-packages\django\db\models\query.py in __iter__
        return iter(self._get_data()) ...
▼ Local vars
Variable        Value
self
Error in formatting:(2003, "Can't connect to MySQL server on
'localhost' (10055)")
C:\Python24\lib\site-packages\django\db\models\query.py in _get_data
            self._result_cache = list(self.iterator()) ...
▼ Local vars
Variable        Value
self
Error in formatting:(2003, "Can't connect to MySQL server on
'localhost' (10055)")


-------------------------------------------------

Traceback (most recent call last):
File "C:\Python24\lib\site-packages\django\core\handlers\base.py" in
get_response
  77. response = callback(request, *callback_args, **callback_kwargs)
File "d:/__EVOLIF__\_dstat\views.py" in index
  60. return render_to_response('general_index.html',
{'user':request.user, 'newslist':newslist})
File "C:\Python24\lib\site-packages\django\contrib\auth\middleware.py"
in __get__
  5. request._cached_user = get_user(request)
File "C:\Python24\lib\site-packages\django\contrib\auth\__init__.py"
in get_user
  78. user_id = request.session[SESSION_KEY]
File "C:\Python24\lib\site-packages\django\contrib\sessions
\middleware.py" in __getitem__
  20. return self._session[key]
File "C:\Python24\lib\site-packages\django\contrib\sessions
\middleware.py" in _get_session
  62. expire_date__gt=datetime.datetime.now())
File "C:\Python24\lib\site-packages\django\db\models\manager.py" in
get
  73. return self.get_query_set().get(*args, **kwargs)
File "C:\Python24\lib\site-packages\django\db\models\query.py" in get
  250. obj_list = list(clone)
File "C:\Python24\lib\site-packages\django\db\models\query.py" in
__iter__
  108. return iter(self._get_data())
File "C:\Python24\lib\site-packages\django\db\models\query.py" in
_get_data
  470. self._result_cache = list(self.iterator())
File "C:\Python24\lib\site-packages\django\db\models\query.py" in
iterator
  182. cursor = connection.cursor()
File "C:\Python24\lib\site-packages\django\db\backends\mysql\base.py"
in cursor
  102. self.connection = Database.connect(**kwargs)
File "C:\Python24\Lib\site-packages\MySQLdb\__init__.py" in Connect
  74. return Connection(*args, **kwargs)
File "C:\Python24\Lib\site-packages\MySQLdb\connections.py" in
__init__
  170. super(Connection, self).__init__(*args, **kwargs2)

  OperationalError at /
  (2003, "Can't connect to MySQL server on 'localhost' (10055)")


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to