Hi,
I have installed MYSQL and get the following error when I try to establish a connection,
>>> conn = pymysql.connect(host='localhost', port=3306, user='root', passwd=None
, db='mysql')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win32\egg\pymysql\__init__.py", line 72, in Connect
File "build\bdist.win32\egg\pymysql\connections.py", line 465, in __init__
File "build\bdist.win32\egg\pymysql\connections.py", line 607, in _connect
File "C:\Python27\lib\socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10061] No connection could be made because the target machi
ne actively refused it
I have installed MYSQL and get the following error when I try to establish a connection,
>>> conn = pymysql.connect(host='localhost', port=3306, user='root', passwd=None
, db='mysql')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win32\egg\pymysql\__init__.py", line 72, in Connect
File "build\bdist.win32\egg\pymysql\connections.py", line 465, in __init__
File "build\bdist.win32\egg\pymysql\connections.py", line 607, in _connect
File "C:\Python27\lib\socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10061] No connection could be made because the target machi
ne actively refused it