Hi!
I just trying to switch everything to cherokee completely. So I switched
everything from port 81, to port 80.
And turned off apache.
But servers are not working. I am getting this error in cherokee.error
self.cursor()
File "/usr/lib/python2.5/site-packages/django/db/backends/__init__.py",
line 56, in cursor
cursor = self._cursor(settings)
File "/usr/lib/python2.5/site-packages/django/db/backends/mysql/base.py",
line 262, in _cursor
self.connection = Database.connect(**kwargs)
File "/usr/lib/python2.5/site-packages/MySQLdb/__init__.py", line 74, in
Connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/MySQLdb/connections.py", line 169,
in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL
server through socket '/v
ar/lib/mysql/mysql.sock' (2)")
Strange why it appeared.
Also when I am starting the django development server, e.g. python manage.py
runserver 0.0.0.0:8888
I don't have any mysql related error
Also my socket seems to be fine. E.g.
[r...@oplot ~]# ls -la /var/lib/mysql/mysql.sock
srwxrwxrwx 1 mysql mysql 0 Aug 25 12:50 /var/lib/mysql/mysql.sock
Thanks,
Oleg
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee