0
我使用Python 3.5.2和PyMySQLPython的 - MySQL连接错误
和创造的MySQL数据库
import pymysql
conn = pymysql(host='127.0.0.1',unix_socket='/tmp/mysql.sock',user='root',passwd=None,db='mysql')
AttributeError: module 'socket' has no attribute 'AF_UNIX'
后附言在我的win10设置MySQL时,将3306端口不能正常工作(让我无法继续)
所以我的端口更改为306,然后工作
有关于我的错误造成任何影响?
它显示了一些错误...
为什么你通过套接字连接,而不是通过端口? – DyZ