Re: OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-04-28 Thread Arturo Paul Castro Calvo
ot;C:\Python27\lib\site-packages\django\db\backends\__init__.py", > line 306, > in cursor > cursor = self.make_debug_cursor(self._cursor()) > File "C:\Python27\lib\site-packages\django\db\backends\mysql\base.py", > line 38 > 7, in _cursor > self.connec

Re: OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-01-08 Thread Javier Guerra Giraldez
On Tue, Jan 8, 2013 at 4:04 AM, Diederik van der Boor wrote: > When you ask the mysql driver to connect to localhost, it will use the > socket. > To avoid this issue, better use 127.0.0.1. which issue? what's wrong with using socket? -- Javier -- You received this message because you are sub

Re: OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-01-08 Thread Diederik van der Boor
The hostname "localhost" has a special meaning for MySQL, at least on Linux it has. When you ask the mysql driver to connect to localhost, it will use the socket. To avoid this issue, better use 127.0.0.1. Also check whether the MySQL server is running on that port (netstat -a ?), whether the ser

Re: OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-01-06 Thread Александр Соколов
Hi! Recently I had the same problem and this site has helped me: http://stackoverflow.com/questions/11121819/mysqldb-in-python-cant-connect-to-mysql-server-on-localhost I've set the next properties: 'ENGINE': 'django.db.backends.mysql', 'NAME': 'yourdbname', 'US

OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-01-06 Thread ANKIT BAGARIA
) File "C:\Python27\lib\site-packages\MySQLdb\__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 187, in __in it__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (20