我已經編寫了一個腳本,可以將我的數據從MySQL轉換爲MongoDB。在表格的處理有400萬行我(當它幾乎完成):從MySQL複製到MongoDB時強制關閉的連接
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 /硬件問題
?
感謝很多建議。我希望我可以避免管理任務,但很好了解一些基礎知識:) – Gerenuk