in connect
sock = socket.create_connection(
File "/usr/lib/python3.10/socket.py", line 824, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, 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/Рабочий стол/uneter/start.py", line 89, in <module>
start()
File "/home/Рабочий стол/uneter/start.py", line 72, in start
con = pymysql.connect(host=base_info.ip_base, user=base_info.login_base, password=base_info.pass_base,
File "/home/.local/lib/python3.10/site-packages/pymysql/connections.py", line 352, in init
self.connect()
File "/home/.local/lib/python3.10/site-packages/pymysql/connections.py", line 668, in connect
raise exc
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '--' ([Errno -2] Name or service not known)")
'''
как решить эту ошибку??
адрес сервера не указал
видимо неправильно указал, или там mysql не запущен
Обсуждают сегодня