都是连 localhost:3306 环境 OSX 10.10
Python 报 61 Connection refused
File "/Library/Python/2.7/site-packages/pyspider/database/mysql/
taskdb.py", line 28, in __init__
host=host, port=port, autocommit=True)
File "/Library/Python/2.7/site-packages/mysql/connector/
__init__.py", line 162, in connect
return MySQLConnection(*args, **kwargs)
File "/Library/Python/2.7/site-packages/mysql/connector/
connection.py", line 129, in __init__
self.connect(**kwargs)
File "/Library/Python/2.7/site-packages/mysql/connector/
connection.py", line 454, in connect
self._open_connection()
File "/Library/Python/2.7/site-packages/mysql/connector/
connection.py", line 417, in _open_connection
self._socket.open_connection()
File "/Library/Python/2.7/site-packages/mysql/connector/
network.py", line 472, in open_connection
errno=2003, values=(self.get_address(), _strioerror(err)))
mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306' (61 Connection refused)
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/183233
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.