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
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
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
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',
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
5 matches
Mail list logo