Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/usr/local/lib/python3.4/dist-packages/pymysql/connections.py", line 890, in connect
  3. (self.host, self.port), self.connect_timeout)
  4. File "/usr/lib/python3.4/socket.py", line 491, in create_connection
  5. for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  6. File "/usr/lib/python3.4/socket.py", line 530, in getaddrinfo
  7. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
  8. socket.gaierror: [Errno -2] Name or service not known
  9.  
  10. During handling of the above exception, another exception occurred:
  11.  
  12. Traceback (most recent call last):
  13. File "/home/pi/CATS/Software/scan_key/main.py", line 22, in <module>
  14. cnx = pymysql.connect(user='CATS', password='CATS', host='CATS-SQL.local', database='CATS', autocommit=True)
  15. File "/usr/local/lib/python3.4/dist-packages/pymysql/__init__.py", line 90, in Connect
  16. return Connection(*args, **kwargs)
  17. File "/usr/local/lib/python3.4/dist-packages/pymysql/connections.py", line 688, in __init__
  18. self.connect()
  19. File "/usr/local/lib/python3.4/dist-packages/pymysql/connections.py", line 937, in connect
  20. raise exc
  21. 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