{"id":38819,"date":"2022-11-08T17:57:56","date_gmt":"2022-11-08T08:57:56","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=38819&#038;preview=true&#038;preview_id=38819"},"modified":"2023-07-24T23:42:51","modified_gmt":"2023-07-24T14:42:51","slug":"mongodb-create-database","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/","title":{"rendered":"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u67d4\u8edf\u6027\u3001\u62e1\u5f35\u6027\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u304a\u3088\u3073\u30b9\u30d4\u30fc\u30c9\u306e\u512a\u5148\u4ed8\u3051\u304c\u6c42\u3081\u3089\u308c\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9078\u629e\u306f\u4e00\u7b4b\u7e04\u3067\u306f\u3044\u304d\u307e\u305b\u3093\u3002\u9ad8\u3044\u67d4\u8edf\u6027\u3068\u62e1\u5f35\u6027\u3092\u5099\u3048\u3001\u9867\u5ba2\u5206\u6790\u7528\u306b\u30c7\u30fc\u30bf\u3092\u96c6\u7d04\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u304a\u63a2\u3057\u306a\u3089\u3001MongoDB\u304c\u7b54\u3048\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n<br \/>\n\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u69cb\u9020\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3001\u76e3\u8996\u3001\u7ba1\u7406\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u69cb\u9020<\/h2>\n<p>MongoDB\u306f\u30b9\u30ad\u30fc\u30de\u30ec\u30b9\u306eNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u3064\u307e\u308a\u3001SQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u3088\u3046\u306b\u30c6\u30fc\u30d6\u30eb\/\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u69cb\u9020\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>NoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u5b9f\u306f<a href=\"https:\/\/kinsta.com\/jp\/blog\/mongodb-vs-mysql\/\">\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb<\/a>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3088\u308a\u3082\u9ad8\u901f\u3067\u3042\u308b\u3053\u3068\u3092\u3054\u5b58\u77e5\u3067\u3057\u3087\u3046\u304b\uff1f\u3053\u308c\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3001\u30a2\u30b0\u30ea\u30b2\u30fc\u30b7\u30e7\u30f3\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\uff08Aggregation Pipeline\uff1d\u96c6\u8a08\uff09\u3068\u3044\u3063\u305f\u7279\u6027\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002\u307e\u305f\u3001MongoDB\u306f\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u304c\u9ad8\u901f\u3067\u3042\u308b\u3053\u3068\u3067\u3082\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u7406\u7531\u304b\u3089\u3001Google\u3001\u30c8\u30e8\u30bf\u81ea\u52d5\u8eca\u3001Forbes\u306a\u3069\u306e\u4f01\u696d\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u3001MongoDB\u306e\u4e3b\u306a\u7279\u5fb4\u3092\u3044\u304f\u3064\u304b\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/h3>\n<p>MongoDB\u306f\u3001\u30c7\u30fc\u30bf\u3092JSON\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30fc\u30c9\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u81ea\u7136\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u308b\u305f\u3081\u3001\u64cd\u4f5c\u304c\u5bb9\u6613\u3067\u3059\u3002<\/p>\n<p>\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306b\u5bfe\u3057\u3066\u3001JSON\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3054\u3068\u306b\u7570\u306a\u308b\u8a2d\u8a08\u304c\u53ef\u80fd\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u3059\u3079\u3066\u306e\u30ec\u30b3\u30fc\u30c9\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u914d\u5217\u306e\u3088\u3046\u306a\u69cb\u9020\u3092\u683c\u7d0d\u3057\u3001\u30cd\u30b9\u30c8\u3057\u3066\u968e\u5c64\u7684\u306a\u95a2\u4fc2\u3092\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001MongoDB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3001\u30d0\u30a4\u30ca\u30eaJSON\uff08BSON\uff09\u578b\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30a2\u30af\u30bb\u30b9\u304c\u9ad8\u901f\u5316\u3055\u308c\u3001\u6587\u5b57\u5217\u3001\u6574\u6570\u3001\u30d6\u30fc\u30eb\u5024\u306a\u3069\u3001\u69d8\u3005\u306a\u30c7\u30fc\u30bf\u578b\u3092\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8<\/h3>\n<p>MongoDB\u3067\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306f\u81ea\u52d5\u7684\u306b\u5c11\u306a\u304f\u3068\u30822\u3064\u306e\u30c7\u30fc\u30bf\u306e\u30b3\u30d4\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30d4\u30fc\u306f\u300c<a href=\"https:\/\/kinsta.com\/jp\/blog\/mongodb-replica-set\/\">\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8<\/a>\u300d\u3068\u547c\u3070\u308c\u3001\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8\u9593\u3067\u7d99\u7d9a\u7684\u306b\u30c7\u30fc\u30bf\u3092\u8907\u88fd\u3057\u3001\u30c7\u30fc\u30bf\u306e\u53ef\u7528\u6027\u3092\u9ad8\u3081\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u307e\u305f\u3001\u30b7\u30b9\u30c6\u30e0\u969c\u5bb3\u3084\u8a08\u753b\u7684\u306a\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306e\u969b\u306b\u30c0\u30a6\u30f3\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u306b\u4fdd\u8b77\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306f\u30011\u3064\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u95a2\u9023\u3059\u308b\u6587\u66f8\u306e\u30b0\u30eb\u30fc\u30d7\u3067\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u5339\u6575\u3059\u308b\u6982\u5ff5\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306f\u3088\u308a\u67d4\u8edf\u3067\u3059\u3002\u30b9\u30ad\u30fc\u30de\u306b\u4f9d\u5b58\u3057\u306a\u3044\u8a2d\u8a08\uff08\u30b9\u30ad\u30fc\u30de\u30ec\u30b9\uff09\u3067\u3042\u308a\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u540c\u3058\u30c7\u30fc\u30bf\u578b\u3067\u3042\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5c5e\u3059\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001<code>listCollections<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30b0\u30ea\u30b2\u30fc\u30b7\u30e7\u30f3\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3<\/h3>\n<p>\u3053\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u8907\u6570\u306e\u6f14\u7b97\u5b50\u3084\u5f0f\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u67d4\u8edf\u6027\u306b\u9577\u3051\u3001\u3069\u306e\u3088\u3046\u306a\u69cb\u9020\u306e\u30c7\u30fc\u30bf\u3067\u3082\u51e6\u7406\u3001\u5909\u63db\u3001\u5206\u6790\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>MongoDB\u3067\u306f150\u306e\u6f14\u7b97\u5b50\u3084\u5f0f\u306b\u308f\u305f\u3063\u3066\u9ad8\u901f\u306a\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc\u3084\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u8907\u6570\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u306e\u7d50\u679c\u3092\u67d4\u8edf\u306b\u307e\u3068\u3081\u308b\u30e6\u30cb\u30aa\u30f3\uff08union\uff09\u30b9\u30c6\u30fc\u30b8\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u30b9\u30c6\u30fc\u30b8\u304c\u3042\u308b\u306e\u3082\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<\/h3>\n<p>MongoDB\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4efb\u610f\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4ed8\u3051\u3066\u3001\u52b9\u7387\u3092\u4e0a\u3052\u3001\u30af\u30a8\u30ea\u306e\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u691c\u67fb\u3059\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u9650\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u6642\u9593\u3092\u7bc0\u7d04\u53ef\u80fd\u3067\u3059\u3002\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u3080\u3088\u308a\u9065\u304b\u306b\u52b9\u7387\u7684\u3067\u3042\u308b\u3053\u3068\u306f\u3001\u8a00\u3046\u307e\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u8907\u6570\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u5bfe\u3059\u308b\u8907\u5408\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u6226\u7565\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u5f93\u696d\u54e1\u306e\u59d3\u3068\u540d\u3092\u5225\u3005\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u683c\u7d0d\u3059\u308b\u6587\u66f8\u304c\u8907\u6570\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u59d3\u3068\u540d\u306e\u4e21\u65b9\u3092\u8fd4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u300c\u59d3\u300d\u3068\u300c\u540d\u300d\u306e\u4e21\u65b9\u3092\u542b\u3080\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001<span style=\"font-weight: 400\">\u300c\u59d3\u300d\u3068\u300c\u540d\u300d<\/span>\u306e2\u3064\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u5229\u7528\u3059\u308b\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u52b9\u679c\u7684\u3067\u3059\u3002<\/p>\n<p>Performance Advisor\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u3092\u6d3b\u7528\u3059\u308c\u3070\u3001\u3069\u306e\u30af\u30a8\u30ea\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u6709\u7528\u3067\u3042\u308b\u304b\u3092\u3055\u3089\u306b\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0<\/h3>\n<p>\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u30011\u3064\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u8907\u6570\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5206\u6563\u3055\u305b\u308b\u3082\u306e\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u8907\u6570\u306e\u30de\u30b7\u30f3\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u7dcf\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5927\u304d\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u5c0f\u3055\u306a\u584a\u306b\u5206\u5272\u3057\u3066\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u30ce\u30fc\u30c9\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>MongoDB\u306f\u3001\u30c7\u30fc\u30bf\u3092\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30ec\u30d9\u30eb\u3067\u30b7\u30e3\u30fc\u30c9\u5316\u3057\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30af\u30e9\u30b9\u30bf\u5185\u306e\u30b7\u30e3\u30fc\u30c9\u306b\u5206\u6563\u3055\u305b\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6700\u5927\u898f\u6a21\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u51e6\u7406\u3067\u304d\u308b\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3068\u306a\u308a\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u304c\u78ba\u4fdd\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u307e\u305a\u3001\u304a\u4f7f\u3044\u306eOS\u306b\u9069\u3057\u305fMongoDB\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/www.mongodb.com\/try\/download\/community\">MongoDB Community Server\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u305d\u306e\u4e2d\u304b\u3089\u3001\u6700\u65b0\u306e\u300cVersion\u300d\u3001\u300cPlatform\u300d\uff08OS\uff09\u3001\u300cPackage\u300d\u5f62\u5f0f\uff08zip\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u9078\u629e\u3057\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306b\u300cDownload\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134838\" aria-describedby=\"caption-attachment-134838\" style=\"width: 594px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134838 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/MongoDB-Community-Server-Download-Process-1.png\" alt=\"MongoDB Community Server\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u6d41\u308c\" width=\"594\" height=\"814\"><figcaption id=\"caption-attachment-134838\" class=\"wp-caption-text\">MongoDB Community Server\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u6d41\u308c\uff08\u753b\u50cf\u51fa\u5178\uff1a<a href=\"https:\/\/www.mongodb.com\/try\/download\/community2\">MongoDB Community Server<\/a>\uff09<\/figcaption><\/figure>\n<p>\u624b\u9806\u306f\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u3001\u3059\u3050\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u3001<code>mongod -version<\/code>\u3068\u5165\u529b\u3057\u3066\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u305a\u3001\u4ee3\u308f\u308a\u306b\u30a8\u30e9\u30fc\u306e\u6587\u5b57\u5217\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3001\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134839\" aria-describedby=\"caption-attachment-134839\" style=\"width: 507px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134839 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Verifying-MongoDB-Version.png\" alt=\"MongoDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff08\u753b\u50cf\u53c2\u7167\u5143\" width=\"507\" height=\"287\"><figcaption id=\"caption-attachment-134839\" class=\"wp-caption-text\">MongoDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\uff08\u753b\u50cf\u53c2\u7167\u5143\uff1a<a href=\"https:\/\/www.configserverfirewall.com\/mongodb\/check-mongodb-version\/\">configserverfirewall<\/a>\uff09<\/figcaption><\/figure>\n<h3>MongoDB Shell\u306e\u4f7f\u7528<\/h3>\n<p>\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u8981\u4ef6\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306bTransport Layer Security\u304c\u3042\u308a\u3001IP<a href=\"https:\/\/docs.atlas.mongodb.com\/security\/ip-access-list\/\">\u8a31\u53ef\u30ea\u30b9\u30c8<\/a>\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/li>\n<li>\u76ee\u7684\u306eMongoDB\u30af\u30e9\u30b9\u30bf\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068<\/li>\n<li>\u30c7\u30d0\u30a4\u30b9\u306bMongoDB\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/li>\n<\/ul>\n<h4>\u30b9\u30c6\u30c3\u30d71. MongoDB Shell\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/h4>\n<p>\u5404OS\u306e\u8aac\u660e\u306b\u5f93\u3063\u3066MongoDB\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002Windows\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u305d\u306e\u4ed6\u306eOS\u306e\u5834\u5408\u306f\u3001MongoDB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-markdown\">net start MongoDB<\/code><\/pre>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<figure id=\"attachment_134840\" aria-describedby=\"caption-attachment-134840\" style=\"width: 512px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134840 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/MongoDB-Server-Initialization.png\" alt=\"MongoDB\u30b5\u30fc\u30d0\u30fc\u306e\u5b9f\u884c\" width=\"512\" height=\"179\"><figcaption id=\"caption-attachment-134840\" class=\"wp-caption-text\">MongoDB\u30b5\u30fc\u30d0\u30fc\u306e\u5b9f\u884c\uff08\u753b\u50cf\u53c2\u7167\u5143\uff1a<a href=\"https:\/\/www.c-sharpcorner.com\/article\/configure-a-windows-service-for-mongodb\/\">c-sharpcorner<\/a>\uff09<\/figcaption><\/figure>\n<p>\u5148\u307b\u3069\u306e\u30b3\u30de\u30f3\u30c9\u3067MongoDB\u30b5\u30fc\u30d0\u30fc\u304c\u521d\u671f\u5316\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067<code>mongo<\/code>\u3068\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134843\" aria-describedby=\"caption-attachment-134843\" style=\"width: 897px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134843 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Running-MongoDB-Server-2.png\" alt=\"MongoDB Shell\u3092\u5b9f\u884c\u3059\u308b\" width=\"897\" height=\"343\"><figcaption id=\"caption-attachment-134843\" class=\"wp-caption-text\">MongoDB Shell\u3092\u5b9f\u884c\u3059\u308b\uff08\u753b\u50cf\u53c2\u7167\u5143\uff1a<a href=\"https:\/\/www.bmc.com\/blogs\/mongodb-create-database\/\">bmc<\/a>\uff09<\/figcaption><\/figure>\n<p>\u3053\u306eMongoDB Shell\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3001\u30c7\u30fc\u30bf\u306e\u633f\u5165\u3001\u30c7\u30fc\u30bf\u306e\u7de8\u96c6\u3001\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u306e\u767a\u884c\u3001\u30c7\u30fc\u30bf\u306e\u524a\u9664\u306a\u3069\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30b9\u30c6\u30c3\u30d72. \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/h4>\n<p>\u4e00\u822c\u7684\u306a\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306f\u7570\u306a\u308a\u3001MongoDB\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210\u30b3\u30de\u30f3\u30c9\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u4ee3\u308f\u308a\u306b\u3001<code>use<\/code>\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u3042\u308a\u3001\u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ea\u30f3\u30af\u3059\u308b\u4ed5\u69d8\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u300ccompany\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use Company<\/code><\/pre>\n<figure id=\"attachment_134845\" aria-describedby=\"caption-attachment-134845\" style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134845 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Creating-Database-in-MongoDB-1.png\" alt=\"MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\" width=\"1378\" height=\"547\"><figcaption id=\"caption-attachment-134845\" class=\"wp-caption-text\">MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/figcaption><\/figure>\n<p><code>db<\/code>\u3068\u5165\u529b\u3057\u3066\u3001\u4eca\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b7\u30b9\u30c6\u30e0\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u63a5\u7d9a\u306b\u6210\u529f\u3057\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>show dbs<\/code>\u3068\u5165\u529b\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u5185\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134847\" aria-describedby=\"caption-attachment-134847\" style=\"width: 1369px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134847 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Show-Databases-in-MongoDB-1.png\" alt=\"MongoDB\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8868\u793a\u3059\u308b\" width=\"1369\" height=\"489\"><figcaption id=\"caption-attachment-134847\" class=\"wp-caption-text\">MongoDB\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8868\u793a\u3059\u308b<\/figcaption><\/figure>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001MongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001admin\u3001config\u3001local\u306e\u5404\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002\u307e\u3060\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5024\u3092\u4fdd\u5b58\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3067\u3059\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u300cMongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7ba1\u7406\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>Atlas UI\u306e\u5229\u7528<\/h3>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d3\u30b9\u300cMongoDB Atlas\u300d\u3092\u4f7f\u7528\u3059\u308b\u624b\u3082\u3042\u308a\u307e\u3059\u3002Atlas\u306e\u4e00\u90e8\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u6709\u6599\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u307b\u3068\u3093\u3069\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u6a5f\u80fd\u306f\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u7121\u6599\u7248\u306e\u6a5f\u80fd\u3067\u3082MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u5341\u5206\u3067\u3059\u3002<\/p>\n<p>\u524d\u63d0\u6761\u4ef6\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol>\n<li>IP\u304c\u8a31\u53ef\u30ea\u30b9\u30c8\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/li>\n<li>\u4f7f\u7528\u3059\u308bMongoDB\u30af\u30e9\u30b9\u30bf\u306b\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u3042\u308b\u3053\u3068<\/li>\n<\/ol>\n<p>Atlas UI\u3067MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u304d\u3001<a href=\"https:\/\/cloud.mongodb.com\/\">https:\/\/cloud.mongodb.com<\/a>\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9\u30bf\u30da\u30fc\u30b8\u304b\u3089\u3001\u300c<strong>Browse Collections<\/strong>\uff08\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u8868\u793a\uff09\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9\u30bf\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u300c<strong>Add My Own Data<\/strong>\uff08\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0\uff09\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3068\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u540d\u524d\u3092\u4ed8\u3051\u305f\u3089\u3001<span style=\"font-weight: 400\">\u300c<strong>Create<\/strong>\u300d\uff08\u4f5c\u6210\uff09<\/span>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u5b8c\u4e86\u3067\u3059\u3002\u3053\u308c\u3067\u3001\u65b0\u3057\u3044\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u5165\u529b\u3057\u305f\u308a\u3001\u30c9\u30e9\u30a4\u30d0\u30fc\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7ba1\u7406<\/h2>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001MongoDB \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u52b9\u7387\u7684\u306b\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u4fbf\u5229\u306a\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002MongoDB Compass\u3001\u307e\u305f\u306f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3046<\/h3>\n<p>\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u3001\u30c7\u30fc\u30bf\u578b\u3084\u30ab\u30e9\u30e0\u3092\u6307\u5b9a\u3057\u305f\u5b9a\u7fa9\u6e08\u307f\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308a\u307e\u3059\u304c\u3001NoSQL\u3067\u306f\u30c6\u30fc\u30d6\u30eb\u306e\u4ee3\u308f\u308a\u306b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u306f\u69cb\u9020\u304c\u306a\u304f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3082\u3055\u307e\u3056\u307e\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u540c\u3058\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u3067\u4ed6\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u5f62\u5f0f\u3068\u4e00\u81f4\u3057\u306a\u304f\u3066\u3082\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u578b\u3084\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u300cEmployee\uff08\u793e\u54e1\uff09\u300d\u3068\u3044\u3046\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-markdown\">db.Employee.insert(\n  {\n   \t\"Employeename\" : \"Chris\",\n   \t\"EmployeeDepartment\" : \"Sales\"\n  }\n)<\/code><\/pre>\n<p>\u633f\u5165\u304c\u6210\u529f\u3059\u308b\u3068\u3001<code>WriteResult({ \"nInserted\" : 1 })<\/code>\u3068\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134848\" aria-describedby=\"caption-attachment-134848\" style=\"width: 1366px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134848 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Successful-Insertion-in-MongoDB.png\" alt=\"MongoDB\u3067\u306e\u30c7\u30fc\u30bf\u306e\u633f\u5165\u306b\u6210\u529f\" width=\"1366\" height=\"484\"><figcaption id=\"caption-attachment-134848\" class=\"wp-caption-text\">MongoDB\u3067\u306e\u30c7\u30fc\u30bf\u306e\u633f\u5165\u306b\u6210\u529f<\/figcaption><\/figure>\n<p>\u300cdb\u300d\u306f\u73fe\u5728\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6307\u3057\u307e\u3059\u3002\u300cEmployee\u300d\u306f\u3001\u4f1a\u793e\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u65b0\u3057\u304f\u4f5c\u6210\u3055\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u4e3b\u30ad\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u306fMongoDB\u304c\u81ea\u52d5\u7684\u306b\u300c_id\u300d\u3068\u3044\u3046\u4e3b\u30ad\u30fc\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4f5c\u6210\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001JSON\u5f62\u5f0f\u3067\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.Employee.find().forEach(printjson)<\/code><\/pre>\n<p>\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{\n  \"_id\" : ObjectId(\"63151427a4dd187757d135b8\"),\n  \"Employeename\" : \"Chris\",\n  \"EmployeeDepartment\" : \"Sales\"\n}<\/code><\/pre>\n<p>\u300c_id\u300d\u306e\u5024\u306f\u81ea\u52d5\u7684\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u304c\u3001\u5909\u66f4\u53ef\u80fd\u3067\u3059\u3002\u300cEmployee\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u300c_id\u300d\u5024\u3092\u300c1\u300d\u3068\u3059\u308b\u5225\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.Employee.insert(\n  {  \n   \t\"_id\" : 1,\n   \t\"EmployeeName\" : \"Ava\",\n   \t\"EmployeeDepartment\" : \"Public Relations\"\n  }\n)<\/code><\/pre>\n<p>\u30b3\u30de\u30f3\u30c9<code>db.Employee.find().forEach(printjson)<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_134851\" aria-describedby=\"caption-attachment-134851\" style=\"width: 1764px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134851 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Primary-Key-for-Documents-in-Collection-1.png\" alt=\"\u4e3b\u30ad\u30fc\u3092\u6301\u3064\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\" width=\"1764\" height=\"694\"><figcaption id=\"caption-attachment-134851\" class=\"wp-caption-text\">\u4e3b\u30ad\u30fc\u3092\u6301\u3064\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/figcaption><\/figure>\n<p>\u4e0a\u8a18\u306e\u51fa\u529b\u3067\u306f\u3001\u300cAva\u300d\u306e\u300c_id\u300d\u306e\u5024\u306f\u81ea\u52d5\u7684\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\u306e\u3067\u306f\u306a\u304f\u300c1\u300d\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5024\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u306b\u6210\u529f\u3057\u305f\u306e\u3067\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u5185\u306e\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u8868\u793a\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-markdown\">show dbs<\/code><\/pre>\n<figure id=\"attachment_134852\" aria-describedby=\"caption-attachment-134852\" style=\"width: 1714px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134852 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/List-of-Databases.png\" alt=\"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\" width=\"1714\" height=\"460\"><figcaption id=\"caption-attachment-134852\" class=\"wp-caption-text\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u5b8c\u6210\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u5185\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>MongoDB Compass\u3092\u4f7f\u3046<\/h3>\n<p>MongoDB\u30b5\u30fc\u30d0\u30fc\u3092Mongo Shell\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u6642\u306b\u9762\u5012\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u672c\u756a\u74b0\u5883\u306a\u3069\u3067\u306f\u3001\u3053\u306e\u65b9\u6cd5\u304c\u4e0d\u4fbf\u306b\u601d\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u4fbf\u5229\u306a\u306e\u304c\u3001MongoDB\u793e\u958b\u767a\u306eGUI\u30c4\u30fc\u30eb\u300cCompass\u300d\u3067\u3059\u3002\u3053\u308c\u3092\u4f7f\u3046\u3068\u4f5c\u696d\u304c\u975e\u5e38\u306b\u697d\u306b\u306a\u308a\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306e\u53ef\u8996\u5316\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u3001\u30c7\u30fc\u30bf\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3078\u306eCRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u53d6\u308a\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u306a\u3069\u306e\u6a5f\u80fd\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.mongodb.com\/docs\/compass\/current\/install\/\">Compass IDE<\/a>\u306f\u3001\u304a\u4f7f\u3044\u306eOS\u306b\u5408\u308f\u305b\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u7c21\u5358\u306a\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u304d\u3001\u63a5\u7d9a\u7528\u306e\u6587\u5b57\u5217\u3092\u8cbc\u308a\u4ed8\u3051\u3001\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u63a5\u7d9a\u3092\u78ba\u7acb\u3057\u307e\u3059\u3002<span style=\"font-weight: 400\">\u63a5\u7d9a\u6587\u5b57\u5217\u304c\u4e0d\u660e\u306a\u5834\u5408\u306f\u3001\u300c<strong>Fill in connection fields individually<\/strong>\uff08\u500b\u5225\u306b\u63a5\u7d9a\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u5165\u529b\u3059\u308b\uff09\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002MongoDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u5909\u66f4\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u300cConnect\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u5b8c\u4e86\u3067\u3059\u3002\u5909\u66f4\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u8a2d\u5b9a\u3057\u305f\u5024\u3092\u5165\u529b\u3057\u3066\u300c<strong>Connect<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<figure id=\"attachment_134854\" aria-describedby=\"caption-attachment-134854\" style=\"width: 1384px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134854 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/New-Connection-Window-in-MongoDB-1.png\" alt=\"MongoDB\u306e\u65b0\u898f\u63a5\u7d9a\u30a6\u30a3\u30f3\u30c9\u30a6\uff08\u753b\u50cf\u53c2\u7167\u5143\" width=\"1384\" height=\"535\"><figcaption id=\"caption-attachment-134854\" class=\"wp-caption-text\">MongoDB\u306e\u65b0\u898f\u63a5\u7d9a\u30a6\u30a3\u30f3\u30c9\u30a6\uff08\u753b\u50cf\u53c2\u7167\u5143\uff1a<a href=\"https:\/\/www.mongodb.com\/docs\/compass\/current\/connect\/\">Mongodb<\/a>\uff09<\/figcaption><\/figure>\n<p>\u6b21\u306b\u3001\u300cNew Connection\u300d\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u300cHostname\u300d\u3001\u300cPort\u300d\u3001\u300cAuthentication\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>MongoDB Compass\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3068\u305d\u306e\u6700\u521d\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u8ffd\u52a0\u3092\u540c\u6642\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u300c<strong>Create Database<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304f<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u540d\u524d\u3068\u305d\u306e\u6700\u521d\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u5165\u529b\u3059\u308b<\/li>\n<li>\u300c<strong>Create Database<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b<\/li>\n<\/ol>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u540d\u524d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c<strong>Documents<\/strong>\u300d\u30bf\u30d6\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3055\u3089\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u633f\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u3001\u300c<strong>Add data<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30011\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u633f\u5165\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u969b\u30011\u3064\u305a\u3064\u5165\u529b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3057\u3001\u8907\u6570\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u914d\u5217\u3067\u5165\u529b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u8907\u6570\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u306b\u5408\u306f\u3001\u30b3\u30f3\u30de\u3067\u533a\u5207\u3089\u308c\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u89d2\u62ec\u5f27\u3067\u56f2\u3093\u3067\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{ _id: 1, item: { name: \"apple\", code: \"123\" }, qty: 15, tags: [ \"A\", \"B\", \"C\" ] },\n{ _id: 2, item: { name: \"banana\", code: \"123\" }, qty: 20, tags: [ \"B\" ] },\n{ _id: 3, item: { name: \"spinach\", code: \"456\" }, qty: 25, tags: [ \"A\", \"B\" ] },\n{ _id: 4, item: { name: \"lentils\", code: \"456\" }, qty: 30, tags: [ \"B\", \"A\" ] },\n{ _id: 5, item: { name: \"pears\", code: \"000\" }, qty: 20, tags: [ [ \"A\", \"B\" ], \"C\" ] },\n{ _id: 6, item: { name: \"strawberry\", code: \"123\" }, tags: [ \"B\" ] }<\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u300c<strong>Insert<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u672c\u6587\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{\n  \"StudentID\" : 1\n  \"StudentName\" : \"JohnDoe\"\n}<\/code><\/pre>\n<p>\u30d5\u30a3\u30fc\u30eb\u30c9\u540d\u306f\u300cStudentID\u300d\u3068\u300cStudentName\u300d\u3067\u3059\u3002\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u306f\u305d\u308c\u305e\u308c\u300c1\u300d\u3068\u300cJohnDoe\u300d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9<\/h3>\n<p>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306f\u3001\u6a29\u9650\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u3068\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u3067\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u30b3\u30de\u30f3\u30c9<\/h4>\n<p>MongoDB\u306b\u306f\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u306b\u95a2\u3059\u308b\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210\u3001\u66f4\u65b0\u3001\u524a\u9664\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h5>dropUser<\/h5>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u30891\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u304c\u305d\u306e\u4e2d\u8eab\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.dropUser(username, writeConcern)<\/code><\/pre>\n<p><code>username<\/code>\u306f\u5fc5\u9808\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u524a\u9664\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d5\u30a3\u30fc\u30eb\u30c9<code>writeConcern<\/code>\u306b\u306f\u3001\u524a\u9664\u64cd\u4f5c\u306b\u5bfe\u3059\u308b\u66f8\u304d\u8fbc\u307f\u4fdd\u8a3c\u306e\u30ec\u30d9\u30eb\u304c\u4ed8\u5e2f\u3057\u307e\u3059\u3002\u66f8\u304d\u8fbc\u307f\u4fdd\u8a3c\u30ec\u30d9\u30eb\u3092\u3053\u306e\u30d5\u30a3\u30fc\u30eb\u30c9<code>writeConcern<\/code>\u3067\u6c7a\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code>userAdminAnyDatabase<\/code>\u306e\u5f79\u5272\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b\u524d\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u6a29\u9650\u3092\u6301\u3064\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5c11\u306a\u304f\u3068\u30821\u4eba\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001test\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u300cuser26\u300d\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use test\ndb.dropUser(\"user26\", {w: \"majority\", wtimeout: 4000})<\/code><\/pre>\n<p>\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">&gt; db.dropUser(\"user26\", {w: \"majority\", wtimeout: 4000});\ntrue<\/code><\/pre>\n<h5>createUser<\/h5>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.createUser(user, writeConcern)<\/code><\/pre>\n<p><code>user<\/code>\u306f\u5fc5\u9808\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3059\u3002\u4f5c\u6210\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u8a8d\u8a3c\u60c5\u5831\u304a\u3088\u3073\u30a2\u30af\u30bb\u30b9\u60c5\u5831\u3092\u8a18\u8ff0\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d5\u30a3\u30fc\u30eb\u30c9<code>writeConcern<\/code>\u3067\u3001\u4f5c\u6210\u64cd\u4f5c\u306b\u5bfe\u3059\u308b\u66f8\u304d\u8fbc\u307f\u4fdd\u8a3c\u306e\u30ec\u30d9\u30eb\u3092\u6271\u3044\u307e\u3059\u3002\u66f8\u304d\u8fbc\u307f\u4fdd\u8a3c\u306e\u30ec\u30d9\u30eb\u306f\u3001<code>writeConcern<\/code>\u306b\u3088\u3063\u3066\u6c7a\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code>createUser<\/code>\u3092\u5b9f\u884c\u3057\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u3059\u3067\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u91cd\u8907\u30e6\u30fc\u30b6\u30fc\u30a8\u30e9\u30fc\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use test\ndb.createUser(\n  {\n    user: \"user26\",\n    pwd: \"myuser123\",\n    roles: [ \"readWrite\" ]  \n  }\n);<\/code><\/pre>\n<p>\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">Successfully added user: { \"user\" : \"user26\", \"roles\" : [ \"readWrite\", \"dbAdmin\" ] }<\/code><\/pre>\n<h5>grantRolesToUser<\/h5>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6d3b\u7528\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u8ffd\u52a0\u306e\u5f79\u5272\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    grantRolesToUser: \"&lt;user&gt;\",\n    roles: [ &lt;roles&gt; ],\n    writeConcern: { &lt;write concern&gt; },\n    comment: &lt;any&gt; \n  }\n)<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u5f79\u5272\u306b\u306f\u3001\u5b9a\u7fa9\u3057\u305f\u3082\u306e\u3068\u7d44\u307f\u8fbc\u307f\u306e\u3082\u306e\u306e\u4e21\u65b9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>grantRolesToUser<\/code>\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u540c\u3058\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u5f79\u5272\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u5f79\u5272\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{ role: \"&lt;role&gt;\", db: \"&lt;database&gt;\" }<\/code><\/pre>\n<p>\u307e\u305f\u306f\u3001\u5358\u306b\u5f79\u5272\u540d\u3067\u5f79\u5272\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5177\u5408\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">\"readWrite\"<\/code><\/pre>\n<p>\u5225\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u5f79\u5272\u3092\u6307\u5b9a\u3059\u308b\u306b\u306f\u3001\u5225\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u5f79\u5272\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u3067\u5f79\u5272\u3092\u4ed8\u4e0e\u3059\u308b\u306b\u306f\u3001\u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u3067<code>grantRole<\/code>\u64cd\u4f5c\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u4f8b\u3092\u6319\u3052\u3066\u307f\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u5546\u54c1\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30e6\u30fc\u30b6\u30fc\u300cproductUser00\u300d\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u6301\u3064\u5834\u5408\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-markdown\">\"roles\" : [\n  {\n    \"role\" : \"assetsWriter\",\n    \"db\" : \"assets\"\n  }\n]<\/code><\/pre>\n<p><code>grantRolesToUser<\/code>\u306e\u64cd\u4f5c\u306b\u3088\u308a\u3001\u300cproductUser00\u300d \u306f\u3001\u5728\u5eab\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e<code>readWrite<\/code>\u306e\u5f79\u5272\u3068\u3001\u5546\u54c1\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u300cread\u300d\u306e\u5f79\u5272\u3092\u4e0e\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use products\ndb.runCommand({\n  grantRolesToUser: \"productUser00\",\n  roles: [\n    { role: \"readWrite\", db: \"stock\"},\n    \"read\"\n  ],\n  writeConcern: { w: \"majority\" , wtimeout: 2000 }\n})<\/code><\/pre>\n<p>\u5546\u54c1\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u300cproductUser00\u300d\u306f\u3001\u4ee5\u4e0b\u306e\u5f79\u5272\u3092\u6301\u3064\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-markdown\">\"roles\" : [\n  {\n    \"role\" : \"assetsWriter\",\n    \"db\" : \"assets\"\n  },\n  {\n    \"role\" : \"readWrite\",\n    \"db\" : \"stock\"\n  },\n  {\n    \"role\" : \"read\",\n    \"db\" : \"products\"\n  }\n]<\/code><\/pre>\n<h5>usersInfo<\/h5>\n<p><code>usersInfo<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u30011\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u69cb\u6587\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    usersInfo: &lt;various&gt;,\n    showCredentials: &lt;Boolean&gt;,\n    showCustomData: &lt;Boolean&gt;,\n    showPrivileges: &lt;Boolean&gt;,\n    showAuthenticationRestrictions: &lt;Boolean&gt;,\n    filter: &lt;document&gt;,\n    comment: &lt;any&gt; \n  }\n)\n{ usersInfo: &lt;various&gt; }<\/code><\/pre>\n<p>\u30a2\u30af\u30bb\u30b9\u306b\u95a2\u3057\u3066\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u5e38\u306b\u81ea\u5206\u81ea\u8eab\u306e\u60c5\u5831\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u898b\u308b\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3059\u308b<code>viewUser<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u542b\u3080\u6a29\u9650\u3092\u6240\u6709\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><code>userInfo<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6307\u5b9a\u3055\u308c\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u5fdc\u3058\u3066\u3001\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{\n  \"users\" : [\n    {\n      \"_id\" : \"&lt;db&gt;.&lt;username&gt;\",\n      \"userId\" : &lt;UUID&gt;, \/\/ Starting in MongoDB 4.0.9\n      \"user\" : \"&lt;username&gt;\",\n      \"db\" : \"&lt;db&gt;\",\n      \"mechanisms\" : [ ... ],  \/\/ Starting in MongoDB 4.0\n      \"customData\" : &lt;document&gt;,\n      \"roles\" : [ ... ],\n      \"credentials\": { ... }, \/\/ only if showCredentials: true\n      \"inheritedRoles\" : [ ... ],  \/\/ only if showPrivileges: true or showAuthenticationRestrictions: true\n      \"inheritedPrivileges\" : [ ... ], \/\/ only if showPrivileges: true or showAuthenticationRestrictions: true\n      \"inheritedAuthenticationRestrictions\" : [ ] \/\/ only if showPrivileges: true or showAuthenticationRestrictions: true\n      \"authenticationRestrictions\" : [ ... ] \/\/ only if showAuthenticationRestrictions: true\n    },\n  ],\n  \"ok\" : 1\n} <\/code><\/pre>\n<p><code>usersInfo<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u4f55\u304c\u3067\u304d\u308b\u306e\u304b\u3001\u5927\u307e\u304b\u306a\u3053\u3068\u306f\u304a\u5206\u304b\u308a\u3044\u305f\u3060\u3051\u305f\u3068\u601d\u3044\u307e\u3059\u3002\u6b21\u306b\u6d6e\u304b\u3093\u3067\u304f\u308b\u7591\u554f\u3068\u3057\u3066\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u3084\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8abf\u3079\u308b\u306b\u306f\u3001\u3069\u3093\u306a\u30b3\u30de\u30f3\u30c9\u304c\u4fbf\u5229\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3053\u308c\u306b\u3064\u3044\u3066\u3001\u540c\u3058\u3053\u3068\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306b2\u3064\u306e\u4fbf\u5229\u306a\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u300coffice\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u300cAnthony\u300d\u306b\u5bfe\u3057\u3066\u3001\u8a8d\u8a3c\u60c5\u5831\u3067\u306f\u306a\u304f\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\u3068\u60c5\u5831\u3092\u898b\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    usersInfo:  { user: \"Anthony\", db: \"office\" },\n    showPrivileges: true\n  }\n)<\/code><\/pre>\n<p>\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8abf\u3079\u308b\u306b\u306f\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u300chome\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u300cTimothy\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.getSiblingDB(\"home\").runCommand(\n  {\n    usersInfo:  \"Timothy\",\n    showPrivileges: true\n  }\n)<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u3055\u307e\u3056\u307e\u306a\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u898b\u308b\u306b\u306f\u3001\u914d\u5217\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u3057\u3066<code>showCredentials<\/code>\u3068<code>showPrivileges<\/code>\u3092\u542b\u3081\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3057\u3001\u7701\u7565\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u3053\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand({\nusersInfo: [ { user: \"Anthony\", db: \"office\" }, { user: \"Timothy\", db: \"home\" } ],\n  showPrivileges: true\n})<\/code><\/pre>\n<h5>revokeRolesFromUser<\/h5>\n<p><code>revokeRolesFromUser<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5f79\u5272\u304c\u5b58\u5728\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e\u30e6\u30fc\u30b6\u30fc\u304b\u30891\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u5f79\u5272\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>revokeRolesFromUser<\/code>\u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    revokeRolesFromUser: \"&lt;user&gt;\",\n    roles: [\n      { role: \"&lt;role&gt;\", db: \"&lt;database&gt;\" } | \"&lt;role&gt;\",\n    ],\n    writeConcern: { &lt;write concern&gt; },\n    comment: &lt;any&gt; \n  }\n)<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u69cb\u6587\u3067\u306f\u3001<code>roles<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u30e6\u30fc\u30b6\u30fc\u306e\u5b9a\u7fa9\u3057\u305f\u5f79\u5272\u3068\u5185\u8535\u306e\u5f79\u5272\u306e\u4e21\u65b9\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<code>grantRolesToUser<\/code>\u30b3\u30de\u30f3\u30c9\u3068\u540c\u69d8\u306b\u3001\u53d6\u308a\u6d88\u3057\u305f\u3044\u5f79\u5272\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u6307\u5b9a\u3059\u308b\u304b\u3001\u305d\u306e\u540d\u524d\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code>revokeRolesFromUser<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u6b63\u5e38\u306b\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067<code>revokeRole<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u308b\u305f\u3081\u306b\u4f8b\u3092\u6319\u3052\u307e\u3059\u3002\u5546\u54c1\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e<code>productUser00<\/code>\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u5f79\u5272\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">\"roles\" : [\n  {\n    \"role\" : \"assetsWriter\",\n    \"db\" : \"assets\"\n  },\n  {\n    \"role\" : \"readWrite\",\n    \"db\" : \"stock\"\n  },\n  {\n    \"role\" : \"read\",\n    \"db\" : \"products\"\n  }\n]<\/code><\/pre>\n<p>\u6b21\u306e<code>revokeRolesFromUser<\/code>\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5f79\u5272\u306e\u3046\u3061\u3001<code>products<\/code> \u306e\u300c\u8aad\u307f\u53d6\u308a\u300d\u5f79\u5272\u3068\u3001\u300c\u8cc7\u7523\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e<code>assetsWriter<\/code>\u306e2\u3064\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use products\ndb.runCommand( { revokeRolesFromUser: \"productUser00\",\n  roles: [\n    { role: \"AssetsWriter\", db: \"assets\" },\n    \"read\"\n  ],\n  writeConcern: { w: \"majority\" }\n} )<\/code><\/pre>\n<p>\u5546\u54c1\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u300cproductUser00\u300d\u304c\u6301\u3064\u5f79\u5272\u306f\u6b8b\u308a1\u3064\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">\"roles\" : [\n  {\n    \"role\" : \"readWrite\",\n    \"db\" : \"stock\"\n  }\n]<\/code><\/pre>\n<h4>\u6a29\u9650\u7ba1\u7406\u30b3\u30de\u30f3\u30c9<\/h4>\n<p>\u5f79\u5272\u306f\u30e6\u30fc\u30b6\u30fc\u306b\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u4e0e\u3048\u308b\u3082\u306e\u3067\u3059\u3002\u7ba1\u7406\u8005\u306f\u3001\u7d44\u307f\u8fbc\u307f\u306e\u5f79\u5272\u3092\u4f7f\u3063\u3066\u3001MongoDB\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5f79\u5272\u304c\u5fc5\u8981\u306a\u6a29\u9650\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u65b0\u3057\u3044\u5f79\u5272\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h5>dropRole<\/h5>\n<p><code>dropRole<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u304c\u5b9a\u7fa9\u3057\u305f\u5f79\u5272\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    dropRole: \"&lt;role&gt;\",\n    writeConcern: { &lt;write concern&gt; },\n    comment: &lt;any&gt; \n  }\n)<\/code><\/pre>\n<p>\u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067<code>dropRole<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306e\u64cd\u4f5c\u306f\u3001\u300cproducts\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089<code>writeTags<\/code>\u306e\u5f79\u5272\u3092\u524a\u9664\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use products\ndb.runCommand(\n  {\n    dropRole: \"writeTags\",\n    writeConcern: { w: \"majority\" }\n  }\n)<\/code><\/pre>\n<h5>createRole<\/h5>\n<p><code>createRole<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u3001\u5f79\u5272\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u6a29\u9650\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5f79\u5272\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u5f79\u5272\u304c\u3059\u3067\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u3001<code>createRole<\/code>\u30b3\u30de\u30f3\u30c9\u304b\u3089\u5f79\u5272\u306e\u91cd\u8907\u30a8\u30e9\u30fc\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6587\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.adminCommand(\n  {\n    createRole: \"&lt;new role&gt;\",\n    privileges: [\n      { resource: { &lt;resource&gt; }, actions: [ \"&lt;action&gt;\", ... ] },\n    ],\n    roles: [\n      { role: \"&lt;role&gt;\", db: \"&lt;database&gt;\" } | \"&lt;role&gt;\",\n    ],\n    authenticationRestrictions: [\n      {\n        clientSource: [\"&lt;IP&gt;\" | \"&lt;CIDR range&gt;\", ...],\n        serverAddress: [\"&lt;IP&gt;\" | \"&lt;CIDR range&gt;\", ...]\n      },\n    ],\n    writeConcern: &lt;write concern document&gt;,\n    comment: &lt;any&gt; \n  }\n)<\/code><\/pre>\n<p>\u5f79\u5272\u306e\u7279\u6a29\u306f\u3001\u305d\u306e\u5f79\u5272\u304c\u4f5c\u6210\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u5f79\u5272\u306b\u304a\u3044\u3066\u3001\u305d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u4ed6\u306e\u5f79\u5272\u304b\u3089\u7279\u6a29\u3092\u7d99\u627f\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u300cadmin\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u4f5c\u6210\u3057\u305f\u5f79\u5272\u304c\u3001\u30af\u30e9\u30b9\u30bf\u307e\u305f\u306f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u9069\u7528\u3055\u308c\u308b\u7279\u6a29\u3092\u542b\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u5f79\u5272\u304b\u3089\u7279\u6a29\u3092\u7d99\u627f\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u5f79\u5272\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e2\u3064\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u305d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e<code>grantRole<\/code>\uff1a\u65b0\u3057\u3044\u5f79\u5272\u306e\u7279\u6a29\u3068\u7d99\u627f\u3059\u308b\u5f79\u5272\u3092\u6307\u5b9a\u3059\u308b<\/li>\n<li><code>createRole<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\uff08\u5bfe\u8c61\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ea\u30bd\u30fc\u30b9\u306b\u9069\u7528\uff09<\/li>\n<\/ol>\n<p>\u6b21\u306e<code>createRole<\/code>\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306b<code>clusterAdmin<\/code>\u306e\u5f79\u5272\u3092\u4f5c\u6210\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.adminCommand({ createRole: \"clusterAdmin\",\n  privileges: [\n    { resource: { cluster: true }, actions: [ \"addShard\" ] },\n    { resource: { db: \"config\", collection: \"\" }, actions: [ \"find\", \"remove\" ] },\n    { resource: { db: \"users\", collection: \"usersCollection\" }, actions: [ \"update\", \"insert\" ] },\n    { resource: { db: \"\", collection: \"\" }, actions: [ \"find\" ] }\n  ],\n  roles: [\n    { role: \"read\", db: \"user\" }\n  ],\n  writeConcern: { w: \"majority\" , wtimeout: 5000 }\n})<\/code><\/pre>\n<h5>grantRolesToRole<\/h5>\n<p><code>grantRolesToRole<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5b9a\u7fa9\u3057\u305f\u5f79\u5272\u306b\u5225\u306e\u5f79\u5272\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>grantRolesToRole<\/code>\u30b3\u30de\u30f3\u30c9\u306f\u3001\u305d\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e\u5f79\u5272\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e<code>grantRolesToRole<\/code>\u30b3\u30de\u30f3\u30c9\u306f\u3001\u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u53d6\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    grantRolesToRole: \"&lt;role&gt;\",\n    roles: [\n     { role: \"&lt;role&gt;\", db: \"&lt;database&gt;\" },\n    ],\n    writeConcern: { &lt;write concern&gt; },\n    comment: &lt;any&gt; \n  }\n)<\/code><\/pre>\n<p>\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306f<code>grantRolesToUser<\/code>\u30b3\u30de\u30f3\u30c9\u3068\u540c\u69d8\u3067\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3092\u9069\u5207\u306b\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u3067<code>grantRole<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u4f8b\u3067\u306f\u3001<code>grantRolesToRole<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u300cproducts\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e<code>productsReader<\/code>\u5f79\u5272\u3092\u66f4\u65b0\u3057\u3001<code>productsWriter<\/code>\u5f79\u5272\u306e\u6a29\u9650\u3092\u7d99\u627f\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use products\ndb.runCommand(\n  { \n    grantRolesToRole: \"productsReader\",\n    roles: [\n      \"productsWriter\"\n    ],\n    writeConcern: { w: \"majority\" , wtimeout: 5000 }\n  }\n)<\/code><\/pre>\n<h5>revokePrivilegesFromRole<\/h5>\n<p><code>revokePrivilegesFromRole<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u5f79\u5272\u304b\u3089\u6307\u5b9a\u3055\u308c\u305f\u6a29\u9650\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6587\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    revokePrivilegesFromRole: \"&lt;role&gt;\",\n    privileges: [\n      { resource: { &lt;resource&gt; }, actions: [ \"&lt;action&gt;\", ... ] },\n    ],\n    writeConcern: &lt;write concern document&gt;,\n    comment: &lt;any&gt; \n  }\n)<\/code><\/pre>\n<p>\u6a29\u9650\u3092\u53d6\u308a\u6d88\u3059\u306b\u306f\u3001\u300cresource document\u300d\u30d1\u30bf\u30fc\u30f3\u304c\u305d\u306e\u6a29\u9650\u306e\u300cresource\u300d\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u4e00\u81f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u300cactions\u300d\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001\u5b8c\u5168\u4e00\u81f4\u3067\u3082\u30b5\u30d6\u30bb\u30c3\u30c8\u3067\u3082\u304b\u307e\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u300cproducts\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5f79\u5272<code>manageRole<\/code>\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u300cmanagers\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6307\u5b9a\u3059\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6a29\u9650\u3092\u6301\u3064\u30b1\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{\n  \"resource\" : {\n    \"db\" : \"managers\",\n    \"collection\" : \"\"\n  },\n  \"actions\" : [\n    \"insert\",\n    \"remove\"\n  ]\n}<\/code><\/pre>\n<p>\u300cmanagers\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e1\u3064\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u3001\u300cinsert\u300d\u307e\u305f\u306f\u300cremove\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u53d6\u308a\u6d88\u3059\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u306e\u64cd\u4f5c\u3092\u884c\u3063\u3066\u3082\u3001\u5f79\u5272\u306b\u5909\u66f4\u306f\u751f\u3058\u307e\u305b\u3093\u3002<\/p>\n<pre><code class=\"language-markdown\">use managers\ndb.runCommand(\n  {\n    revokePrivilegesFromRole: \"manageRole\",\n    privileges: [\n      {\n        resource : {\n          db : \"managers\",\n          collection : \"kiosks\"\n        },\n        actions : [\n          \"insert\",\n          \"remove\"\n        ]\n      }\n    ]\n  }\n)<\/code><\/pre>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    revokePrivilegesFromRole: \"manageRole\",\n    privileges:\n      [\n        {\n          resource : {\n          db : \"managers\",\n          collection : \"kiosks\"\n        },\n        actions : [\n          \"insert\"\n        ]\n      }\n    ]\n  }\n)<\/code><\/pre>\n<p>\u5f79\u5272\u306e\u300cinsert\u300d\u3084\u300cremove\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u53d6\u308a\u6d88\u3059\u306b\u306f\u3001<code>manageRole<\/code> \u3001\u30ea\u30bd\u30fc\u30b9\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u306e\u6b63\u78ba\u306a\u4e00\u81f4\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u64cd\u4f5c\u306f\u3001\u65e2\u5b58\u306e\u7279\u6a29\u304b\u3089\u300cremove\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u3060\u3051\u3092\u53d6\u308a\u6d88\u3059\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use managers\ndb.runCommand(\n  {\n    revokePrivilegesFromRole: \"manageRole\",\n    privileges:\n      [\n        {\n          resource : {\n            db : \"managers\",\n            collection : \"\"\n        },\n        actions : [ \"remove\" ]\n      }\n    ]\n  }\n)<\/code><\/pre>\n<p>\u6b21\u306e\u64cd\u4f5c\u306f\u3001\u300cmanagers\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u300cexecutive\u300d\u3068\u3044\u3046\u5f79\u5272\u304b\u3089\u8907\u6570\u306e\u6a29\u9650\u3092\u524a\u9664\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use managers\ndb.runCommand(\n  {\n    revokePrivilegesFromRole: \"executive\",\n    privileges: [\n      {\n        resource: { db: \"managers\", collection: \"\" },\n        actions: [ \"insert\", \"remove\", \"find\" ]\n      },\n      {\n        resource: { db: \"managers\", collection: \"partners\" },\n        actions: [ \"update\" ]\n      }\n    ],\n    writeConcern: { w: \"majority\" }\n    }\n)<\/code><\/pre>\n<h5>rolesInfo<\/h5>\n<p><code>rolesInfo<\/code>\u30b3\u30de\u30f3\u30c9\u306f\u3001\u7d44\u307f\u8fbc\u307f\u3068\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u5f79\u5272\u306e\u4e21\u65b9\u3092\u5bfe\u8c61\u306b\u3001\u6307\u5b9a\u3055\u308c\u305f\u5f79\u5272\u306e\u6a29\u9650\u3068\u7d99\u627f\u60c5\u5831\u3092\u8fd4\u3057\u307e\u3059\u3002\u307e\u305f\u3001<code>rolesInfo<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u6d3b\u7528\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30b9\u30b3\u30fc\u30d7\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u5f79\u5272\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u69cb\u6587\u3067\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    rolesInfo: { role: &lt;name&gt;, db: &lt;db&gt; },\n    showPrivileges: &lt;Boolean&gt;,\n    showBuiltinRoles: &lt;Boolean&gt;,\n    comment: &lt;any&gt; \n  }\n)<\/code><\/pre>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u5f79\u5272\u306e\u60c5\u5831\u3092\u8fd4\u3059\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u305d\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{ rolesInfo: \"&lt;rolename&gt;\" }<\/code><\/pre>\n<p>\u5225\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u5f79\u5272\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u5f79\u5272\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3064\u3044\u3066\u8a00\u53ca\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u5f79\u5272\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{ rolesInfo: { role: \"&lt;rolename&gt;\", db: \"&lt;database&gt;\" } }<\/code><\/pre>\n<p>\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u300cmanagers\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u5f79\u5272\u300cexecutive\u300d\u306e\u5f79\u5272\u7d99\u627f\u60c5\u5831\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n   {\n      rolesInfo: { role: \"executive\", db: \"managers\" }\n   }\n)<\/code><\/pre>\n<p>\u3053\u306e\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u304a\u3051\u308b<code>accountManager<\/code>\u306b\u3064\u3044\u3066\u306e\u5f79\u5272\u7d99\u627f\u60c5\u5831\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n   {\n      rolesInfo: \"accountManager\"\n   }\n)<\/code><\/pre>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u300cmanagers\u300d\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u5f79\u5272\u300cexecutive\u300d\u306e\u6a29\u9650\u3068\u5f79\u5272\u7d99\u627f\u306e\u4e21\u65b9\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n   {\n     rolesInfo: { role: \"executive\", db: \"managers\" },\n     showPrivileges: true\n   }\n)<\/code><\/pre>\n<p>\u8907\u6570\u306e\u5f79\u5272\u3092\u6271\u3046\u306b\u306f\u3001\u914d\u5217\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u914d\u5217\u5185\u306e\u5404\u5f79\u5272\u3092\u6587\u5b57\u5217\u307e\u305f\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u5217\u3092\u4f7f\u7528\u3059\u308b\u306e\u306f\u3001\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306b\u5f79\u5272\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306e\u307f\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{\n  rolesInfo: [\n    \"&lt;rolename&gt;\",\n    { role: \"&lt;rolename&gt;\", db: \"&lt;database&gt;\" },\n  ]\n}<\/code><\/pre>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f3\u3064\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306e3\u3064\u306e\u5f79\u5272\u306e\u60c5\u5831\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n   {\n    rolesInfo: [\n      { role: \"executive\", db: \"managers\" },\n      { role: \"accounts\", db: \"departments\" },\n      { role: \"administrator\", db: \"products\" }\n    ]\n  }\n)<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u6a29\u9650\u3068\u5f79\u5272\u7d99\u627f\u306e\u4e21\u65b9\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">db.runCommand(\n  {\n    rolesInfo: [\n      { role: \"executive\", db: \"managers\" },\n      { role: \"accounts\", db: \"departments\" },\n      { role: \"administrator\", db: \"products\" }\n    ],\n    showPrivileges: true\n  }\n)<\/code><\/pre>\n<h2>MongoDB\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u57cb\u3081\u8fbc\u3093\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5f15\u304d\u4e0a\u3052\u308b<\/h2>\n<p>MongoDB\u306e\u3088\u3046\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u306f\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u30b9\u30ad\u30fc\u30de\u3092\u5b9a\u7fa9\u53ef\u80fd\u3067\u3059\u3002MongoDB\u3067\u30b9\u30ad\u30fc\u30de\u3092\u4f5c\u6210\u3059\u308b\u4e0a\u3067\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30cd\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306b\u5408\u308f\u305b\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u7528\u9014\u306b\u5408\u308f\u305b\u305f\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3067\u3001\u4e00\u7dd2\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<a href=\"https:\/\/kinsta.com\/blog\/mysql-backup-database\/\">\u95a2\u9023\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58<\/a>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002MongoDB\u306e\u30b9\u30ad\u30fc\u30de\u3092\u8a2d\u8a08\u3059\u308b\u969b\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30a4\u30c9\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30a4\u30c9\u306e\u7d50\u5408\u3084\u53c2\u7167\u306f\u3001\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051\u4f7f\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u304c\u5fc5\u8981\u306a\u56de\u6570\u3060\u3051\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u540c\u6642\u306b\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u304c\u3059\u3079\u3066\u5b58\u5728\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u3092\u5b9f\u73fe\u3059\u308b\u4e0a\u3067\u6975\u3081\u3066\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u57cb\u3081\u8fbc\u3080\u8907\u6570\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u57cb\u3081\u8fbc\u307f\u578b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u3001\u8907\u96d1\u306a\u30b5\u30d6\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3082\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u57cb\u3081\u8fbc\u3093\u3067\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u9023\u7d50\u30c7\u30fc\u30bf\u30921\u3064\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u8aad\u307f\u53d6\u308a\u64cd\u4f5c\u306e\u56de\u6570\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e00\u822c\u306b\u3001\u30b9\u30ad\u30fc\u30de\u306e\u69cb\u9020\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c1\u56de\u306e\u8aad\u307f\u53d6\u308a\u64cd\u4f5c\u3067\u5fc5\u8981\u306a\u60c5\u5831\u3092\u3059\u3079\u3066\u53d7\u3051\u53d6\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5f93\u3063\u3066\u3001\u3053\u3053\u3067\u7559\u610f\u3059\u3079\u304d\u306f\u3001<strong>\u4e00\u7dd2\u306b\u4f7f\u308f\u308c\u308b\u3082\u306e\u306f\u4e00\u7dd2\u306b\u4fdd\u5b58<\/strong>\u3059\u308b\u3068\u3044\u3046\u30eb\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<h3>\u57cb\u3081\u8fbc\u307f\u578b\u30b5\u30d6\u30bb\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u57cb\u3081\u8fbc\u307f\u578b\u30b5\u30d6\u30bb\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u300c\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u300d\u306a\u624b\u6cd5\u3060\u3068\u8a00\u3048\u307e\u3059\u3002\u305f\u304f\u3055\u3093\u306e\u9805\u76ee\u3092\u683c\u7d0d\u3057\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u9805\u76ee\u306e\u3044\u304f\u3064\u304b\u3092\u624b\u5143\u306b\u7f6e\u3044\u3066\u3059\u3050\u306b\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u8868\u793a\u3059\u308b\u4f8b\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">&gt; db.movie.findOne()\n{   \n  _id: 321475,   \n  title: \"The Dark Knight\"\n}  \n&gt; db.review.find({movie_id: 321475})\n{   \n  _id: 264579,   \n  movie_id: 321475,   \n  stars: 4   \n  text: \"Amazing\"   \n}\n{   \n  _id: 375684,   \n  movie_id: 321475,   \n  stars:5,   \n  text: \"Mindblowing\"\n}<\/code><\/pre>\n<p>\u540c\u3058\u3088\u3046\u306a\u30ec\u30d3\u30e5\u30fc\u304c1,000\u4ef6\u3042\u308b\u3068\u3057\u3066\u3001\u305d\u306e\u6620\u753b\u306b\u3064\u3044\u3066\u6700\u65b0\u306e2\u4ef6\u3060\u3051\u3092\u8868\u793a\u3057\u305f\u3044\u3068\u3057\u307e\u3059\u3002\u305d\u3093\u306a\u6642\u306b\u306f\u3001\u305d\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4e2d\u306b\u6574\u7406\u3057\u3066\u4fdd\u5b58\u3059\u308b\u306e\u304c\u52b9\u679c\u7684\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">&gt; db.movie.findOne({_id: 321475})   \n{   \n  _id: 321475,   \n  title: \"The Dark Knight\",   \n  recent_reviews: [   \n    {_id: 264579, stars: 4, text: \"Amazing\"},   \n    {_id: 375684, stars: 5, text: \"Mindblowing\"}   \n  ]   \n}<\/code><\/pre>\n<p>\u4e00\u822c\u7684\u306b\u8a00\u3063\u3066\u3001\u95a2\u9023\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u9805\u76ee\u3092\u65e5\u5e38\u7684\u306b\u53d6\u308a\u51fa\u3059\u4ed5\u69d8\u3067\u3042\u308c\u3070\u3001\u305d\u308c\u3092\u307e\u3068\u3081\u3066\u57cb\u3081\u8fbc\u3080\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u5206\u96e2<\/h3>\n<p>\u30b5\u30d6\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3001\u89aa\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u5206\u96e2\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u683c\u7d0d\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u3042\u308b\u4f1a\u793e\u306e\u88fd\u54c1\u30e9\u30a4\u30f3\u30ca\u30c3\u30d7\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u305d\u306e\u4f1a\u793e\u304c\u5c0f\u3055\u306a\u88fd\u54c1\u7fa4\u3092\u8ca9\u58f2\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u308c\u3092\u4f1a\u793e\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5185\u306b\u683c\u7d0d\u3057\u3088\u3046\u3068\u8003\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u4f1a\u793e\u9593\u3067\u518d\u5229\u7528\u3057\u305f\u308a\u3001\u5728\u5eab\u7ba1\u7406\u5358\u4f4d\uff08SKU\uff09\u3067\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3057\u305f\u308a\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u683c\u7d0d\u3059\u308b\u3053\u3068\u3082\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u5358\u72ec\u3067\u64cd\u4f5c\u3001\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3057\u3066\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u500b\u5225\u306b\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u914d\u5217\u80a5\u5927\u5316\u306e\u9632\u6b62<\/h3>\n<p>\u95a2\u9023\u3059\u308b\u60c5\u5831\u3092\u914d\u5217\u3068\u3057\u3066\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u306b\u306f\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u7ba1\u7406\u306e\u96e3\u3057\u3055\u3084\u30b5\u30a4\u30ba\u306e\u80a5\u5927\u5316\u3068\u3044\u3063\u305f\u89b3\u70b9\u304b\u3089\u30011\u3064\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u914d\u5217\u3092\u969b\u9650\u306a\u304f\u62e1\u5f35\u3059\u308b\u306e\u306f\u907f\u3051\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u907f\u3051\u308b\u3079\u304d\u660e\u78ba\u306a\u7406\u7531\u304c2\u3064\u5b58\u5728\u3057\u307e\u3059\u30021\u3064\u76ee\u3068\u3057\u3066\u3001MongoDB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6bce\u306b\u30b5\u30a4\u30ba\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u30022\u3064\u76ee\u306b\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u983b\u5ea6\u304c\u591a\u3059\u304e\u308b\u3068\u3001\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u304c\u5236\u5fa1\u3067\u304d\u306a\u304f\u306a\u308a\u3001\u69d8\u3005\u306a\u554f\u984c\u304c\u5f15\u304d\u8d77\u3053\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7c21\u5358\u306b\u8a00\u3048\u3070\u3001\u914d\u5217\u304c\u969b\u9650\u306a\u304f\u80a5\u5927\u5316\u3057\u3066\u3044\u308b\u3068\u611f\u3058\u305f\u3089\uff08\u3080\u3057\u308d\u305d\u3046\u306a\u308b\u524d\u306b\uff09\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u5225\u306b\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u62e1\u5f35\u53c2\u7167\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>\u62e1\u5f35\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30b5\u30d6\u30bb\u30c3\u30c8\u30d1\u30bf\u30fc\u30f3\u3068\u540c\u3058\u3088\u3046\u306a\u6982\u5ff5\u3067\u3059\u304c\u3001\u3053\u308c\u306b\u306f\u5b9a\u671f\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u60c5\u5831\u3092\u6700\u9069\u5316\u3059\u308b\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u624b\u6cd5\u306f\u914d\u5217\u306e\u4ee3\u308f\u308a\u306b\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u540c\u3058\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u5b58\u5728\u3059\u308b\u5225\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3059\u308b\u3068\u304d\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002\u3059\u3050\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u4ed6\u306e\u5bfe\u8c61\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">&gt; db.movie.findOne({_id: 245434})\n{   \n  _id: 245434,   \n  title: \"Mission Impossible 4 - Ghost Protocol\",   \n  studio_id: 924935,   \n  studio_name: \"Paramount Pictures\"   \n}<\/code><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u300cstudio_id\u300d\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u6620\u753b\u3092\u5236\u4f5c\u3057\u305f\u30b9\u30bf\u30b8\u30aa\u306e\u8a73\u7d30\u60c5\u5831\u3092\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30bf\u30b8\u30aa\u306e\u540d\u524d\u3082\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3001\u7c21\u5358\u306b\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5225\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304b\u3089\u5b9a\u671f\u7684\u306b\u60c5\u5831\u3092\u57cb\u3081\u8fbc\u3080\u3068\u3057\u3066\u3001\u60c5\u5831\u306e\u5909\u66f4\u304c\u767a\u751f\u3057\u305f\u6642\u306b\u306f\u3001\u5f53\u7136\u306a\u304c\u3089\u5bfe\u5fdc\u3059\u308b\u66f4\u65b0\u4f5c\u696d\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u53c2\u7167\u5148\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u7279\u5b9a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u65e5\u5e38\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u305d\u308c\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>MongoDB\u3092\u76e3\u8996\u3059\u308b\u65b9\u6cd5<\/h2>\n<p><a href=\"https:\/\/kinsta.com\/jp\/apm-tool\/\">Kinsta APM<\/a>\u306e\u3088\u3046\u306a<a href=\"https:\/\/kinsta.com\/blog\/apm-tools\/\">\u76e3\u8996\u30c4\u30fc\u30eb<\/a>\u3092\u4f7f\u3063\u3066\u3001\u6642\u9593\u306e\u304b\u304b\u3063\u3066\u3044\u308bAPI\u30b3\u30fc\u30eb\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea\u3001\u5916\u90e8URL\u30ea\u30af\u30a8\u30b9\u30c8\u306a\u3069\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3092\u6d3b\u7528\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-repair-database\/\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5065\u5168\u6027<\/a>\u3092\u691c\u67fb\u3059\u308b\u306e\u306b\u3082\u6709\u7528\u3067\u3059\u3002<\/p>\n<h3>MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u76e3\u8996\u3059\u308b\u5fc5\u8981\u6027<\/h3>\n<p>\u30af\u30e9\u30b9\u30bf\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5065\u5168\u6027\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/mykinsta\/\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u8a08\u753b<\/a>\u306e\u91cd\u8981\u306a\u5074\u9762\u306e\u4e00\u3064\u3067\u3059\u3002MongoDB Atlas\u3092\u4f7f\u3063\u3066\uff08\u305d\u306e\u30d5\u30a9\u30fc\u30eb\u30c8\u30c8\u30ec\u30e9\u30f3\u30b9\/\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u6a5f\u80fd\u306b\u3088\u308a\uff09\u7ba1\u7406\u4f5c\u696d\u306e\u5927\u90e8\u5206\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u30af\u30e9\u30b9\u30bf\u3092\u8ffd\u8de1\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u3063\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u5371\u6a5f\u306b\u76f4\u9762\u3059\u308b\u524d\u306b\u3001\u5fc5\u8981\u306a\u3082\u306e\u3092\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3057\u305f\u308a\u3001\u8abf\u6574\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u89b3\u5bdf\u3059\u308b<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u73fe\u5728\u306e\u30ad\u30e3\u30d1\u30b7\u30c6\u30a3\u3092\u628a\u63e1\u3059\u308b<\/li>\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b9\u30bf\u30c3\u30af\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u554f\u984c\u306b\u53cd\u5fdc\u3057\u3001\u691c\u51fa\u3059\u308b<\/li>\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c\u3084\u7570\u5e38\u306a\u52d5\u4f5c\u306e\u6709\u7121\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u30ac\u30d0\u30ca\u30f3\u30b9\u3001\u30c7\u30fc\u30bf\u4fdd\u8b77\u3001\u30b5\u30fc\u30d3\u30b9\u30ec\u30d9\u30eb\u5408\u610f\uff08SLA\uff09\u8981\u4ef6\u306b\u5408\u81f4\u3059\u308b\u3088\u3046\u306b\u8abf\u6574\u3059\u308b<\/li>\n<\/ul>\n<h3>\u76e3\u8996\u3059\u3079\u304d\u4e3b\u306a\u6307\u6a19<\/h3>\n<p>MongoDB\u3092\u76e3\u8996\u3059\u308b\u969b\u306b\u306f\u30014\u3064\u306e\u91cd\u8981\u306a\u5074\u9762\u3092\u5ff5\u982d\u306b\u7f6e\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>MongoDB\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306b\u95a2\u3059\u308b\u6307\u6a19<\/h4>\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u76e3\u8996\u306e\u4e3b\u306a\u6307\u6a19\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<h5>\u6b63\u898f\u5316\u30d7\u30ed\u30bb\u30b9CPU<\/h5>\n<p>MongoDB\u30d7\u30ed\u30bb\u30b9\u3092\u7dad\u6301\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u8cbb\u3084\u3055\u308c\u308bCPU\u306e\u6642\u9593\u306e\u5272\u5408\u3068\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>CPU\u30b3\u30a2\u6570\u3067\u5272\u308b\u3053\u3068\u3067\u30010\uff5e100%\u306e\u7bc4\u56f2\u306b\u30b9\u30b1\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u3084\u30e6\u30fc\u30b6\u30fc\u306a\u3069\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u6d3b\u7528\u3055\u308c\u308bCPU\u3082\u3053\u308c\u306b\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ab\u30fc\u30cd\u30eb\u306eCPU\u304c\u9ad8\u3044\u3068\u3001OS\u306e\u64cd\u4f5c\u3067CPU\u3092\u4f7f\u3044\u679c\u305f\u3057\u305f\u3053\u3068\u3092\u793a\u3059\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001MongoDB\u306e\u64cd\u4f5c\u306b\u9023\u52d5\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u304cCPU\u3092\u75b2\u5f0a\u3055\u305b\u308b\u6839\u672c\u7684\u306a\u539f\u56e0\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h5>\u6b63\u898f\u5316\u30b7\u30b9\u30c6\u30e0CPU<\/h5>\n<p>CPU\u304c\u3053\u306eMongoDB\u30d7\u30ed\u30bb\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u51e6\u7406\u306b\u8cbb\u3084\u3057\u305f\u6642\u9593\u306e\u5272\u5408\u3067\u3059\u3002CPU\u30b3\u30a2\u6570\u3067\u5272\u308b\u3053\u3068\u3067\u30010\uff5e100%\u306e\u7bc4\u56f2\u3067\u7279\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002iowait\u3001user\u3001kernel\u3001steal\u306a\u3069\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u4f7f\u7528\u3059\u308bCPU\u3082\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>CPU\u3084\u30ab\u30fc\u30cd\u30eb\u306e\u8ca0\u62c5\u304c\u9ad8\u3044\u5834\u5408\u306f\u3001MongoDB\u306e\u64cd\u4f5c\uff08\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff09\u306b\u3088\u308bCPU\u306e\u6d88\u8017\u304c\u61f8\u5ff5\u3055\u308c\u307e\u3059\u3002iowait\u304c\u9ad8\u3044\u5834\u5408\u306f\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u67af\u6e07\u304cCPU\u306e\u6d88\u8017\u3092\u5f15\u304d\u8d77\u3053\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h5>\u30c7\u30a3\u30b9\u30afIOPS<\/h5>\n<p>\u30c7\u30a3\u30b9\u30afIOPS\u306f\u3001MongoDB\u306e\u30c7\u30a3\u30b9\u30af\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30671\u79d2\u9593\u306b\u6d88\u8cbb\u3055\u308c\u308bIO\u64cd\u4f5c\u306e\u5e73\u5747\u5024\u3067\u3059\u3002<\/p>\n<h5>\u30c7\u30a3\u30b9\u30af\u30ec\u30a4\u30c6\u30f3\u30b7<\/h5>\n<p>MongoDB\u306e\u30c7\u30a3\u30b9\u30af\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u8aad\u307f\u8fbc\u307f\u3068\u66f8\u304d\u8fbc\u307f\u306e\u30c7\u30a3\u30b9\u30af\u30ec\u30a4\u30c6\u30f3\u30b7\uff08\u30df\u30ea\u79d2\uff09\u3067\u3059\u3002\u3053\u306e\u5024\u304c\u9ad8\u3044\uff08&gt;500ms\uff09\u3068\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u5c64\u304cMongoDB\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h5>\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2\u30ea<\/h5>\n<p>\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u7269\u7406\u7684\u306a\u30e1\u30e2\u30ea\u306e\u91cf\u3068\u4f7f\u7528\u53ef\u80fd\u306a\u7a7a\u304d\u9818\u57df\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5229\u7528\u53ef\u80fd\u306a\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2\u30ea\u304c\u6982\u7b97\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3092\u5229\u7528\u3057\u3066\u3001\u30b9\u30ef\u30c3\u30d7\u306a\u3057\u3067\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h5>\u30c7\u30a3\u30b9\u30af\u306e\u7a7a\u304d\u5bb9\u91cf<\/h5>\n<p>MongoDB\u306e\u30c7\u30a3\u30b9\u30af\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u3042\u308b\u30c7\u30a3\u30b9\u30af\u306e\u7a7a\u304d\u5bb9\u91cf\u3067\u3059\u3002MongoDB Atlas\u306f\u3001\u3053\u306e\u6307\u6a19\u306b\u57fa\u3065\u3044\u3066\u81ea\u52d5\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u6a5f\u80fd\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h5>\u30b9\u30ef\u30c3\u30d7\u4f7f\u7528\u91cf<\/h5>\n<p>\u30b9\u30ef\u30c3\u30d7\u4f7f\u7528\u91cf\u30b0\u30e9\u30d5\u3092\u6d3b\u7528\u3057\u3066\u3001\u30b9\u30ef\u30c3\u30d7\u30c7\u30d0\u30a4\u30b9\u306b\u7f6e\u304b\u308c\u3066\u3044\u308b\u30e1\u30e2\u30ea\u306e\u91cf\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4f7f\u7528\u7387\u304c\u9ad8\u3044\u3068\u3001\u30b9\u30ef\u30c3\u30d7\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3001\u65e2\u5b58\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u30e1\u30e2\u30ea\u304c\u5341\u5206\u306b\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>MongoDB\u30af\u30e9\u30b9\u30bf\u306e\u63a5\u7d9a\u3068\u64cd\u4f5c<\/h4>\n<p>\u30af\u30e9\u30b9\u30bf\u306e\u63a5\u7d9a\u3068\u64cd\u4f5c\u306b\u95a2\u308f\u308b\u4e3b\u8981\u306a\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h5>\u64cd\u4f5c\u306e\u5b9f\u884c\u6642\u9593<\/h5>\n<p>\u9078\u629e\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u671f\u9593\u4e2d\u306b\u5b9f\u884c\u3055\u308c\u305f\u5e73\u5747\u64cd\u4f5c\u6642\u9593\uff08\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u3068\u8aad\u307f\u53d6\u308a\u64cd\u4f5c\uff09\u3067\u3059\u3002<\/p>\n<h5>opcounters<\/h5>\n<p>\u9078\u629e\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u671f\u9593\u306b\u304a\u3044\u3066\u30011\u79d2\u9593\u306b\u5b9f\u884c\u3055\u308c\u305f\u64cd\u4f5c\u306e\u5e73\u5747\u30ec\u30fc\u30c8\u3067\u3059\u3002opcounters\u30b0\u30e9\u30d5\/\u30e1\u30c8\u30ea\u30af\u30b9\u304b\u3089\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u30bf\u30a4\u30d7\u3068\u30d9\u30ed\u30b7\u30c6\u30a3\u3068\u3044\u3063\u305f\u5185\u8a33\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<h5>\u63a5\u7d9a\u2500connections<\/h5>\n<p>\u3053\u306e\u6307\u6a19\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3078\u306e\u30aa\u30fc\u30d7\u30f3\u306a\uff08\u7279\u5b9a\u306e\u671f\u9593\u306b\u5b9f\u884c\u4e2d\u306e\uff09\u63a5\u7d9a\u6570\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u6570\u5024\u306e\u6025\u4e0a\u6607\u306a\u3069\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u5fdc\u7b54\u3057\u3066\u3044\u306a\u3044\u3001\u307e\u305f\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304b\u3089\u306e\u63a5\u7d9a\u304c\u6700\u9069\u3067\u306a\u3044\u53ef\u80fd\u6027\u3092\u793a\u5506\u3057\u307e\u3059\u3002<\/p>\n<h5>\u30af\u30a8\u30ea\u30bf\u30fc\u30b2\u30c6\u30a3\u30f3\u30b0\u3068\u30af\u30a8\u30ea\u30a8\u30af\u30bc\u30ad\u30e5\u30fc\u30bf<\/h5>\n<p>\u30b9\u30ad\u30e3\u30f3\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u304a\u3051\u308b\u3001\u4e00\u5b9a\u671f\u9593\u4e2d\u306e1\u79d2\u3042\u305f\u308a\u306e\u5e73\u5747\u30ec\u30fc\u30c8\u3067\u3059\u3002\u30af\u30a8\u30ea\u30a8\u30af\u30bc\u30ad\u30e5\u30fc\u30bf\u306b\u304a\u3044\u3066\u306f\u3001\u30af\u30a8\u30ea\u30d7\u30e9\u30f3\u306e\u8a55\u4fa1\u6642\u70b9\u304c\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u3002\u30af\u30a8\u30ea\u30bf\u30fc\u30b2\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u30b9\u30ad\u30e3\u30f3\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6570\u3068\u8fd4\u3055\u308c\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6570\u306e\u6bd4\u7387\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u7d50\u679c\u3001\u4f8b\u3048\u3070\u5c11\u306a\u3044\u60c5\u5831\u3092\u8fd4\u3059\u305f\u3081\u306b\u3001\u591a\u304f\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u30b9\u30ad\u30e3\u30f3\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5224\u660e\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u30af\u30a8\u30ea\u306e\u52b9\u7387\u304c\u60aa\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h5>\u30b9\u30ad\u30e3\u30f3\u3068\u4e26\u3073\u66ff\u3048\u2500scan and order<\/h5>\n<p>\u9078\u629e\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u671f\u9593\u306e\u30af\u30a8\u30ea\u306b\u304a\u3051\u308b1\u79d2\u3042\u305f\u308a\u306e\u5e73\u5747\u30ec\u30fc\u30c8\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3057\u305f\u64cd\u4f5c\u3092\u5b9f\u884c\u3067\u304d\u306a\u3044\u3001\u30bd\u30fc\u30c8\u3055\u308c\u305f\u7d50\u679c\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<h5>\u30ad\u30e5\u30fc\u2500queues<\/h5>\n<p>\u30ad\u30e5\u30fc\u306f\u3001\u66f8\u304d\u8fbc\u307f\u307e\u305f\u306f\u8aad\u307f\u8fbc\u307f\u306e\u30ed\u30c3\u30af\u3092\u5f85\u3063\u3066\u3044\u308b\u64cd\u4f5c\u306e\u6570\u3092\u793a\u3057\u307e\u3059\u3002\u30ad\u30e5\u30fc\u304c\u591a\u3044\u3068\u3001\u30b9\u30ad\u30fc\u30de\u306e\u8a2d\u8a08\u304c\u6700\u9069\u3067\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u66f8\u304d\u8fbc\u307f\u7d4c\u8def\u304c\u7af6\u5408\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ea\u30bd\u30fc\u30b9\u3092\u3081\u3050\u308b\u7af6\u4e89\u304c\u6fc0\u3057\u304f\u306a\u3063\u3066\u3044\u308b\u72b6\u614b\u3067\u3042\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4>MongoDB\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u95a2\u3059\u308b\u6307\u6a19<\/h4>\n<p>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u76e3\u8996\u306e\u305f\u3081\u306e\u4e3b\u8981\u306a\u6307\u6a19\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<h5>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3oplog\u30a6\u30a3\u30f3\u30c9\u30a6<\/h5>\n<p>\u3053\u306e\u6307\u6a19\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3oplog\u3067\u5229\u7528\u53ef\u80fd\u306a\u304a\u304a\u3088\u305d\u306e\u6642\u9593\u3092\u793a\u3057\u307e\u3059\u3002\u30bb\u30ab\u30f3\u30c0\u30ea\u5074\u304c\u3053\u306e\u6642\u9593\u3088\u308a\u9045\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u8ffd\u3044\u3064\u304f\u3053\u3068\u304c\u3067\u304d\u305a\u3001\u5b8c\u5168\u306a\u518d\u540c\u671f\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h5>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e9\u30b0<\/h5>\n<p>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e9\u30b0\u306f\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u30ce\u30fc\u30c9\u304c\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u3088\u308a\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u3067\u9045\u308c\u3066\u3044\u308b\u5177\u5408\u3092\u3001\u304a\u304a\u3088\u305d\u306e\u79d2\u6570\u3067\u793a\u3057\u307e\u3059\u3002\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e9\u30b0\u304c\u5927\u304d\u3044\u3068\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u56f0\u96e3\u3067\u3042\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u63a5\u7d9a\u306e\u8aad\u307f\u66f8\u304d\u306b\u95a2\u3059\u308b\u61f8\u5ff5\u304c\u751f\u3058\u3001\u904b\u7528\u306e\u30ec\u30a4\u30c6\u30f3\u30b7\u306b\u5f71\u97ff\u304c\u51fa\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h5>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d8\u30c3\u30c9\u30eb\u30fc\u30e0<\/h5>\n<p>\u3053\u306e\u6307\u6a19\u306f\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eoplog\u30a6\u30a3\u30f3\u30c9\u30a6\u3068\u30bb\u30ab\u30f3\u30c0\u30ea\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e9\u30b0\u306e\u5dee\u5206\u3092\u6307\u3057\u307e\u3059\u3002\u3053\u306e\u5024\u304c\u30bc\u30ed\u306b\u306a\u308b\u3068\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u304cRECOVERING\u30e2\u30fc\u30c9\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h5>opcounters &#8211; repl<\/h5>\n<p>Opcounters &#8211; repl\u306f\u3001\u9078\u629e\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u671f\u9593\u306b\u304a\u3044\u3066\u30011\u79d2\u9593\u306b\u5b9f\u884c\u3055\u308c\u305f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u64cd\u4f5c\u306e\u5e73\u5747\u30ec\u30fc\u30c8\u3067\u3059\u3002opcounters &#8211; graph\/metric\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u64cd\u4f5c\u901f\u5ea6\u3068\u64cd\u4f5c\u30bf\u30a4\u30d7\u306e\u5185\u8a33\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h5>oplog GB\/\u6642\u9593<\/h5>\n<p>\u30d7\u30e9\u30a4\u30de\u30ea\u304c1\u6642\u9593\u3042\u305f\u308a\u306b\u751f\u6210\u3059\u308boplog\u306e\u5e73\u5747\u30ec\u30fc\u30c8\uff08GB\uff09\u3067\u3059\u3002\u4e88\u671f\u305b\u306c\u5927\u91cf\u306eoplog\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u66f8\u304d\u8fbc\u307f\u4f5c\u696d\u80fd\u529b\u304c\u5927\u304d\u304f\u4e0d\u8db3\u3057\u3066\u3044\u308b\u304b\u3001\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306b\u554f\u984c\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>MongoDB\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u76e3\u8996\u30b3\u30de\u30f3\u30c9<\/h3>\n<p>MongoDB\u306b\u306f\u3001Cloud Manager\u3001Atlas\u3001Ops Manager\u306b\u6a19\u6e96\u642d\u8f09\u3059\u308b\u304b\u305f\u3061\u3067\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8ffd\u8de1\u30c4\u30fc\u30eb\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u3088\u308a\u751f\u306b\u8fd1\u3044\u30c7\u30fc\u30bf\u3092\u898b\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3084\u30c4\u30fc\u30eb\u3082\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u3067\u306f\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u3084\u6a29\u9650\u3092\u6301\u3064\u30db\u30b9\u30c8\u304b\u3089\u5b9f\u884c\u3067\u304d\u308b\u3001\u74b0\u5883\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>mongotop<\/h4>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068\u3001MongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3054\u3068\u306b\u30c7\u30fc\u30bf\u306e\u66f8\u304d\u8fbc\u307f\u3068\u8aad\u307f\u53d6\u308a\u306b\u8cbb\u3084\u3059\u6642\u9593\u3092\u8ffd\u8de1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">mongotop &lt;options&gt; &lt;connection-string&gt; &lt;polling-interval in seconds&gt;<\/code><\/pre>\n<h4>rs.status()<\/h4>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u30e1\u30f3\u30d0\u30fc\u306e\u8996\u70b9\u304b\u3089\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>mongostat<\/h4>\n<p><code>mongostat<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068\u3001MongoDB\u30b5\u30fc\u30d0\u30fc\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u7c21\u5358\u306b\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u7279\u5b9a\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u5358\u4e00\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u76e3\u8996\u3059\u308b\u306e\u306b\u4f7f\u7528\u3059\u308b\u306e\u304c\u52b9\u679c\u7684\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6d3b\u7528\u3057\u3066\u3001\u30ed\u30c3\u30af\u30ad\u30e5\u30fc\u3001\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u30d6\u30ec\u30a4\u30af\u30c0\u30a6\u30f3\u3001MongoDB\u30e1\u30e2\u30ea\u3001\u63a5\u7d9a\/\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u30b5\u30fc\u30d0\u30fc\u7d71\u8a08\u60c5\u5831\u3092\u76e3\u8996\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">mongostat &lt;options&gt; &lt;connection-string&gt; &lt;polling interval in seconds&gt;<\/code><\/pre>\n<h4>dbStats<\/h4>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u6570\u3068\u305d\u306e\u30b5\u30a4\u30ba\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u306e\u5408\u8a08\u3068\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u30b5\u30a4\u30ba\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u95a2\u9023\u306e\u7d71\u8a08\uff08\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u6570\uff09\u306a\u3069\u3001\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u60c5\u5831\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h4>db.serverStatus()<\/h4>\n<p><code>db.serverStatus()<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u72b6\u614b\u306e\u6982\u8981\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5bfe\u8c61\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u3064\u3044\u3066\u306e\u5404\u7a2e\u6307\u6a19\u304c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5f62\u5f0f\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u95a2\u3059\u308b\u30c7\u30fc\u30bf\u3092\u7167\u5408\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4>collStats<\/h4>\n<p><code>collStats<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001<code>dbStats<\/code>\u3068\u540c\u69d8\u306e\u60c5\u5831\u3092\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u4f53\u3067\u306f\u306a\u304f\uff09\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30ec\u30d9\u30eb\u3067\u8868\u793a\u3067\u304d\u307e\u3059\u3002\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6570\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u6d88\u8cbb\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30b5\u30a4\u30ba\u3001\u304a\u3088\u3073\u7279\u5b9a\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u5bfe\u3059\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u3044\u3063\u305f\u60c5\u5831\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30ec\u30dd\u30fc\u30c8\u306e\u78ba\u8a8d\u3084\u76e3\u8996\u304c\u53ef\u80fd\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30a8\u30e9\u30fc\u3092\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3057\u3001\u305d\u306e\u60c5\u5831\u306b\u57fa\u3065\u3044\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6539\u826f\u3059\u308b\u305f\u3081\u306e\u610f\u601d\u6c7a\u5b9a\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>MongoDB\u3067\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001use\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u300cEngineers\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u305f\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">use Engineers<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u3053\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001<code>db.dropDatabase()<\/code>\u3068\u5165\u529b\u3057\u307e\u3059\u3002\u5b9f\u884c\u5f8c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7d50\u679c\u304c\u8fd4\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-markdown\">{ \"dropped\"  :  \"Engineers\", \"ok\" : 1 }<\/code><\/pre>\n<p><code>showdbs<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u307e\u3060\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>MongoDB\u306e\u4fa1\u5024\u3092\u5f15\u304d\u51fa\u3059\u306b\u306f\u3001\u305d\u306e\u6027\u80fd\u3092\u3057\u3063\u304b\u308a\u3068\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u57fa\u790e\u3092\u5b66\u3073\u3001\u5fa9\u7fd2\u3059\u308b\u3053\u3068\u304c\u6975\u3081\u3066\u91cd\u8981\u3067\u3059\u3002\u305d\u306e\u4e00\u6b69\u304c\u3001<a href=\"https:\/\/kinsta.com\/jp\/devkinsta\/\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/a>\u3060\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<br \/>\n<br \/>\n\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3001\u305d\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7ba1\u7406\u306b\u4fbf\u5229\u306aMongoDB\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u52b9\u7387\u3092\u5f15\u304d\u4e0a\u3052\u308b\u305f\u3081\u306b\u304a\u3059\u3059\u3081\u306eMongoDB\u7d44\u307f\u8fbc\u307f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u76e3\u8996\u30b3\u30de\u30f3\u30c9\u306b\u3082\u89e6\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305fMongoDB\u30b3\u30de\u30f3\u30c9\u7b49\u306b\u3064\u3044\u3066\u3001\u7279\u5225\u306a\u601d\u3044\u5165\u308c\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\u307e\u305f\u3001\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u307b\u3057\u3044\u5185\u5bb9\u3084\u30dd\u30a4\u30f3\u30c8\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u67d4\u8edf\u6027\u3001\u62e1\u5f35\u6027\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u304a\u3088\u3073\u30b9 &#8230;<\/p>\n","protected":false},"author":117,"featured_media":38820,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[185,711,184,45],"topic":[],"class_list":["post-38819","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-database","tag-mongodb","tag-web-development","tag-webdev"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/title>\n<meta name=\"description\" content=\"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-08T08:57:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-24T14:42:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Salman Ravoof\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png\" \/>\n<meta name=\"twitter:creator\" content=\"@salmanravoof\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Salman Ravoof\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"9\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/\"},\"author\":{\"name\":\"Salman Ravoof\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\"},\"headline\":\"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2022-11-08T08:57:56+00:00\",\"dateModified\":\"2023-07-24T14:42:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/\"},\"wordCount\":402,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png\",\"keywords\":[\"database\",\"MongoDB\",\"web development\",\"webdev\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/\",\"name\":\"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png\",\"datePublished\":\"2022-11-08T08:57:56+00:00\",\"dateModified\":\"2023-07-24T14:42:51+00:00\",\"description\":\"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\",\"name\":\"Salman Ravoof\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"caption\":\"Salman Ravoof\"},\"description\":\"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.\",\"sameAs\":[\"https:\/\/salmanravoof.com\",\"https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/\",\"https:\/\/x.com\/salmanravoof\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","description":"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","og_description":"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2022-11-08T08:57:56+00:00","article_modified_time":"2023-07-24T14:42:51+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png","type":"image\/png"}],"author":"Salman Ravoof","twitter_card":"summary_large_image","twitter_description":"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png","twitter_creator":"@salmanravoof","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Salman Ravoof","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"9\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/"},"author":{"name":"Salman Ravoof","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987"},"headline":"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","datePublished":"2022-11-08T08:57:56+00:00","dateModified":"2023-07-24T14:42:51+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/"},"wordCount":402,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png","keywords":["database","MongoDB","web development","webdev"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/","url":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/","name":"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png","datePublished":"2022-11-08T08:57:56+00:00","dateModified":"2023-07-24T14:42:51+00:00","description":"MongoDB\u306e\u7406\u89e3\u3092\u6df1\u3081\u308b\u306b\u306f\u3001MongoDB Create Database\u30b3\u30de\u30f3\u30c9\u304b\u3089\u59cb\u307e\u308b\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u7fd2\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u95a2\u9023\u3059\u308b\u6ce8\u610f\u4e8b\u9805\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/11\/mongodb-create-database.png","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/mongodb-create-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"\u30106\u3064\u306e\u8981\u70b9\u3011MongoDB\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987","name":"Salman Ravoof","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","caption":"Salman Ravoof"},"description":"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.","sameAs":["https:\/\/salmanravoof.com","https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/","https:\/\/x.com\/salmanravoof"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/38819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/117"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=38819"}],"version-history":[{"count":15,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/38819\/revisions"}],"predecessor-version":[{"id":47975,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/38819\/revisions\/47975"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/es"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/se"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/translations\/dk"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38819\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/38820"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=38819"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=38819"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=38819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}