Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/usr/local/lib/python3.4/dist-packages/pymysql/connections.py", line 890, in connect
- (self.host, self.port), self.connect_timeout)
- File "/usr/lib/python3.4/socket.py", line 491, in create_connection
- for res in getaddrinfo(host, port, 0, SOCK_STREAM):
- File "/usr/lib/python3.4/socket.py", line 530, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -2] Name or service not known
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/pi/CATS/Software/scan_key/main.py", line 22, in <module>
- cnx = pymysql.connect(user='CATS', password='CATS', host='CATS-SQL.local', database='CATS', autocommit=True)
- File "/usr/local/lib/python3.4/dist-packages/pymysql/__init__.py", line 90, in Connect
- return Connection(*args, **kwargs)
- File "/usr/local/lib/python3.4/dist-packages/pymysql/connections.py", line 688, in __init__
- self.connect()
- File "/usr/local/lib/python3.4/dist-packages/pymysql/connections.py", line 937, in connect
- raise exc
- pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'CATS-SQL.local' ([Errno -2] Name or service not known)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement