$ sudo vi \/etc\/mongod.conf\n# Turn on\/off security. Off is currently the default\n#noauth = true\nauth = true\n$ sudo service mongod restart\n<\/code><\/pre>\n\n\n\n\u3053\u308c\u3067MONGODB-CR\u65b9\u5f0f\u3067\u306e\u8a8d\u8a3c\u306b\u623b\u308a\u307e\u3057\u305f\uff0e\u305f\u3060\u3057\uff0cMONGODB-CR\u65b9\u5f0f\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\uff08\u4f8b\u3048\u3070MongoDB3.0\u306b\u306a\u3063\u3066\u304b\u3089\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\uff09\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u518d\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\uff0e<\/p>\n\n\n\n
SCRAM-SHA-1\u65b9\u5f0f\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u6301\u3064\u30e6\u30fc\u30b6\u3092\u63a2\u3059\uff1a\n> db.system.users.find({ \"credentials.SCRAM-SHA-1\" : { $exists: true}}, { user: 1, db: 1})\nMONGODB-CR\u65b9\u5f0f\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u6301\u3064\u30e6\u30fc\u30b6\u3092\u63a2\u3059\uff1a\n> db.system.users.find({ \"credentials.MONGODB-CR\" : { $exists: true}}, { user: 1, db: 1})\n<\/code><\/pre>\n\n\n\n\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\uff1a\ndb.changeUserPassword(\"User name\", \"New Password\")\n<\/code><\/pre>\n\n\n\n\u4ee5\u4e0a\u3067\u3059\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"
\u74b0\u5883 \u75c7\u72b6 MongoDB3.0\u4ee5\u964d\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3092\u7528\u3044\u3066\uff0cRobomongo\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u8a8d\u8a3c\u30a8\u30e9\u30fc\u306b\u306a\u308b \u539f\u56e0 MongoDB 3.0\u4ee5\u964d\u306f\uff0c\u30e6\u30fc\u30b6\u8a8d\u8a3c\u30e1\u30ab\u30cb\u30ba\u30e0\u306bSCRAM-SHA-1\u65b9\u5f0f\u3092\u7528\u3044\u308b\u3088\u3046\u306b\u306a\u308a\uff0c\u65b0\u898f\u306b\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u306fSCRAM-SHA-1\u65b9\u5f0f\u3067\u8a8d\u8a3c\u60c5\u5831\u3092\u6301\u3064\u3088\u3046\u306b\u306a\u308b\uff0e\u4e00\u65b9\uff0cRobomongo\u306f\u307e\u3060SCRAM-SHA-1\u65b9\u5f0f\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u3089\u305a\uff0cMONGODB-CR\u65b9\u5f0f\u3067\u8a8d\u8a3c\u3092\u304a\u3053\u306a\u304a\u3046\u3068\u3059\u308b\u304c\uff0cMongo […]<\/p>\n","protected":false},"author":1,"featured_media":28845,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[149,150],"class_list":["post-28838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-misc","tag-mongodb","tag-robomongo"],"_links":{"self":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/28838"}],"collection":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/comments?post=28838"}],"version-history":[{"count":10,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/28838\/revisions"}],"predecessor-version":[{"id":29695,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/28838\/revisions\/29695"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/media\/28845"}],"wp:attachment":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/media?parent=28838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/categories?post=28838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/tags?post=28838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}