Encountered a MongoDB warning after converting a replica set to stand alone server

本小妞迷上赌 提交于 2019-12-01 03:24:30

The local database contains replica set information among other things. You can drop the local database without ill effect.
Use the following comments to drop the local database.

use local
db.dropDatabase()

The warning messages should go away after restarting mongod

use local;
db.dropDatabase();
db.system.replset.remove ({});

Quit the mongo shell .. restart service just in case "service mongod restart"

mongo --host bind_ip --port bind_port
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!