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

2013-04-28 Thread Arturo Paul Castro Calvo
self.connection = Database.connect(**kwargs) > 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 > i

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

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

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',

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

2013-01-06 Thread ANKIT BAGARIA
ages\MySQLdb\connections.py", line 187, in __in it__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)") * I am using windows 7.* *please help me fix it. it is driving me crazy. I have googled it, gone