Attempting to connect to MongoDB, that actually is MySQL, results in weird error message after waiting for a long time.
The error message really doesn't help me figure out what the problem is.
>>> import pymongo >>> from pymongo import MongoClient >>> client = MongoClient('localhost', 3306) >>> db = client.test_database >>> import datetime >>> post = {"author": "Mike", ... "text": "My first blog post!", ... "tags": ["mongodb", "python", "pymongo"], ... "date": datetime.datetime.utcnow()} >>> posts = db.posts >>> post_id = posts.insert_one(post).inserted_id Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 466, in insert_one with self._socket_for_writes() as sock_info: File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 663, in _get_socket server = self._get_topology().select_server(selector) File "/usr/local/lib/python2.7/dist-packages/pymongo/topology.py", line 121, in select_server address)) File "/usr/local/lib/python2.7/dist-packages/pymongo/topology.py", line 97, in select_servers self._error_message(selector)) pymongo.errors.ServerSelectionTimeoutError: ids don't match 1159126505 758330414