我编写了一个脚本,将我的数据从 MySQL 转换为 MongoDB。在处理一个有 4,000,000 行的表期间,我得到了(几乎完成时):
Traceback (most recent call last):
File "C:\Python32\lib\site-packages\pymongo\connection.py", line 822, in _send_message
sock_info.sock.sendall(data)
socket.error: [Errno 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "kolibri_to_mongo.py", line 94, in <module>
coll.update(..., upsert=True)
File "C:\Python32\lib\site-packages\pymongo\collection.py", line 411, in update
_check_keys, self.__uuid_subtype), safe)
File "C:\Python32\lib\site-packages\pymongo\connection.py", line 837, in _send_message
raise AutoReconnect(str(e))
pymongo.errors.AutoReconnect: [Errno 10054] An existing connection was forcibly closed by the remote host
Exception mysql.connector.errors.InternalError: InternalError() in <bound method SqlConn.__del__ of SQLConn(?)> ignored
这是 PyMongo 错误还是 SQL 错误?我可以检查 MySQL 或 MongoDB 端的任何限制(大小或超时)吗?还是只是有人杀死了我的查询?
编辑:我注意到现在我无法再连接到 MongoDB 并出现超时错误:( MongoDB 中是否有任何需要更改的限制是否更有可能是另一个 IT/硬件问题?