MySQL Forums
Forum List  »  Connector/Python

MY SQL Installation Error
Posted by: prem anand
Date: September 26, 2011 03:36PM

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

Options: ReplyQuote


Subject
Written By
Posted
MY SQL Installation Error
September 26, 2011 03:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.