设为首页 收藏本站
查看: 870|回复: 0

[经验分享] mongo db updata

[复制链接]

尚未签到

发表于 2015-11-11 10:05:49 | 显示全部楼层 |阅读模式
http://www.mongodb.org/display/DOCS/Advanced&#43;Queries#AdvancedQueries-ConditionalOperators:<,<=,>,>=



MongoDB update数据语法







在前面的文章“mongodb查询的语法”里,我介绍了Mongodb的常用查询语法,Mongodb的update操作也有点复杂,我结合自己的使用经验,在这里介绍一下,给用mongodb的朋友看看,也方便以后自己用到的时候查阅:



注:在这篇文章及上篇文章内讲的语法介绍都是在mongodbshell环境内的,和真正运用语言编程(如java,php等)使用时,在使用方法上会有一些差别,但语法(如查询条件,$in,$inc等)是一样的。



本文是参考官方文档来介绍的,之所以有官方文档还要在这介绍,一方面是就当翻译,毕竟每次要用时去看英文文档比较累,第二是官方文档讲解比较简单,有时光看官方文档不好理解,我在实际操作的情况下可以做些补充。



好了,不多说了,下面正式开始:



mongodb更新有两个命令:



1).update()命令



db.collection.update( criteria, objNew, upsert, multi )



criteria : update的查询条件,类&#20284;sql update查询内where后面的

objNew   :update的对象和一些更新的操作符(如$,$inc...)等,也可以理解为sql update查询内set后面的

upsert   :这个参数的意思是,如果不存在update的记录,是否插入objNew,true为插入,默认是false,不插入。

multi    :mongodb默认是false,只更新找到的第一条记录,如果这个参数为true,就把按条件查出来多条记录全部更新。



例:

db.test0.update( { &quot;count&quot; : { $gt : 1 } } , { $set : { &quot;test2&quot; :&quot;OK&quot;} } ); 只更新了第一条记录

db.test0.update( { &quot;count&quot; : { $gt : 3 } } , { $set : { &quot;test2&quot; :&quot;OK&quot;} },false,true ); 全更新了

db.test0.update( { &quot;count&quot; : { $gt : 4 } } , { $set : { &quot;test5&quot; :&quot;OK&quot;} },true,false ); 只加进去了第一条

db.test0.update( { &quot;count&quot; : { $gt : 5 } } , { $set : { &quot;test5&quot; :&quot;OK&quot;} },true,true ); 全加进去了

db.test0.update( { &quot;count&quot; : { $gt : 15 } } , { $inc : { &quot;count&quot; :1} },false,true );全更新了

db.test0.update( { &quot;count&quot; : { $gt : 10 } } , { $inc : { &quot;count&quot; :1} },false,false );只更新了第一条



2).save()命令



db.collection.save( x )



x就是要更新的对象,只能是单条记录。



如果在collection内已经存在一个和x对象相同的&quot;_id&quot;的记录。mongodb就会把x对象替换collection内已经存在的记录,否则将会插入x对象,如果x内没有_id,系统会自动生成一个再插入。相当于上面update语句的upsert=true,multi=false的情况。



例:

db.test0.save({count:40,test1:&quot;OK&quot;}); #_id系统会生成

db.test0.save({_id:40,count:40,test1:&quot;OK&quot;});#如果test0内有_id等于40的,会替换,否则插入。





mongodb的更新操作符:



1) $inc



用法:{ $inc : { field : value } }



意思对一个数字字段field增加value,例:



> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 16, &quot;test1&quot; :&quot;TESTTEST&quot;, &quot;test2&quot; : &quot;OK&quot;, &quot;test3&quot; : &quot;TESTTEST&quot;, &quot;test4&quot; : &quot;OK&quot;,&quot;test5&quot; : &quot;OK&quot; }



> db.test0.update( { &quot;_id&quot; : 15 } , { $inc : {&quot;count&quot; : 1 } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 17, &quot;test1&quot; :&quot;TESTTEST&quot;, &quot;test2&quot; : &quot;OK&quot;, &quot;test3&quot; : &quot;TESTTEST&quot;, &quot;test4&quot; : &quot;OK&quot;,&quot;test5&quot; : &quot;OK&quot; }



> db.test0.update( { &quot;_id&quot; : 15 } , { $inc : {&quot;count&quot; : 2 } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 19, &quot;test1&quot; :&quot;TESTTEST&quot;, &quot;test2&quot; : &quot;OK&quot;, &quot;test3&quot; : &quot;TESTTEST&quot;, &quot;test4&quot; : &quot;OK&quot;,&quot;test5&quot; : &quot;OK&quot; }



> db.test0.update( { &quot;_id&quot; : 15 } , { $inc : {&quot;count&quot; : -1 } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; :&quot;TESTTEST&quot;, &quot;test2&quot; : &quot;OK&quot;, &quot;test3&quot; : &quot;TESTTEST&quot;, &quot;test4&quot; : &quot;OK&quot;,&quot;test5&quot; : &quot;OK&quot; }





2) $set



用法:{ $set : { field : value } }



就是相当于sql的set field = value,全部数据类型都支持$set。例:

> db.test0.update( { &quot;_id&quot; : 15 } , { $set : {&quot;test1&quot; : &quot;testv1&quot;,&quot;test2&quot; : &quot;testv2&quot;,&quot;test3&quot; : &quot;testv3&quot;,&quot;test4&quot; :&quot;testv4&quot; } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : &quot;testv1&quot;,&quot;test2&quot; : &quot;testv2&quot;, &quot;test3&quot; : &quot;testv3&quot;, &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot;: &quot;OK&quot; }



3) $unset



用法:{ $unset : { field : 1} }



顾名思义,就是删除字段了。例:

> db.test0.update( { &quot;_id&quot; : 15 } , { $unset : {&quot;test1&quot;:1 } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test2&quot; : &quot;testv2&quot;,&quot;test3&quot; : &quot;testv3&quot;, &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }



> db.test0.update( { &quot;_id&quot; : 15 } , { $unset : {&quot;test2&quot;: 0 } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test3&quot; : &quot;testv3&quot;,&quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }



> db.test0.update( { &quot;_id&quot; : 15 } , { $unset : {&quot;test3&quot;:asdfasf } } );

Fri May 14 16:17:38 JS Error: ReferenceError: asdfasf is notdefined (shell):0



> db.test0.update( { &quot;_id&quot; : 15 } , { $unset : {&quot;test3&quot;:&quot;test&quot; } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test4&quot; : &quot;testv4&quot;,&quot;test5&quot; : &quot;OK&quot; }



没看出field : 1里面的1是干什么用的,反正只要有东西就行。





4) $push



用法:{ $push : { field : value } }

把value追加到field里面去,field一定要是数组类型才行,如果field不存在,会新增一个数组类型加进去。例:

> db.test0.update( { &quot;_id&quot; : 15 } , { $set : { &quot;test1&quot; : [&quot;aaa&quot;,&quot;bbb&quot;] } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;aaa&quot;, &quot;bbb&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }

> db.test0.update( { &quot;_id&quot; : 15 } , { $push : { &quot;test1&quot;: &quot;ccc&quot; } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;aaa&quot;, &quot;bbb&quot;, &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }

> db.test0.update( { &quot;_id&quot; : 15 } , { $push : { &quot;test2&quot;: &quot;ccc&quot; } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;aaa&quot;, &quot;bbb&quot;, &quot;ccc&quot; ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }

> db.test0.update( { &quot;_id&quot; : 15 } , { $push : { &quot;test1&quot;: [&quot;ddd&quot;,&quot;eee&quot;] } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;aaa&quot;, &quot;bbb&quot;, &quot;ccc&quot;, [ &quot;ddd&quot;, &quot;eee&quot; ] ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }

5) $pushAll



用法:{ $pushAll : { field : value_array } }



同$push,只是一次可以追加多个&#20540;到一个数组字段内。例:



> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;aaa&quot;,&quot;bbb&quot;, &quot;ccc&quot;, [ &quot;ddd&quot;, &quot;eee&quot; ] ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; :&quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }



> db.test0.update( { &quot;_id&quot; : 15 } , { $pushAll : {&quot;test1&quot;: [&quot;fff&quot;,&quot;ggg&quot;] } } );

> db.test0.find( { &quot;_id&quot; : 15 } );

{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;aaa&quot;,&quot;bbb&quot;, &quot;ccc&quot;, [ &quot;ddd&quot;, &quot;eee&quot; ], &quot;fff&quot;, &quot;ggg&quot; ], &quot;test2&quot; : [ &quot;ccc&quot;], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }



6)  $addToSet



用法:{ $addToSet : { field : value } }

增加一个&#20540;到数组内,而且只有当这个&#20540;不在数组内才增加。例:
> db.test0.update( { &quot;_id&quot; : 15 } , { $addToSet : { &quot;test1&quot;: {$each : [&quot;444&quot;,&quot;555&quot;] } } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [
&quot;aaa&quot;,
&quot;bbb&quot;,
&quot;ccc&quot;,
[
&quot;ddd&quot;,
&quot;eee&quot;
],
&quot;fff&quot;,
&quot;ggg&quot;,
[
&quot;111&quot;,
&quot;222&quot;
],
&quot;444&quot;,
&quot;555&quot;
], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }
> db.test0.update( { &quot;_id&quot; : 15 } , { $addToSet : { &quot;test1&quot;: {$each : [&quot;444&quot;,&quot;555&quot;] } } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [
&quot;aaa&quot;,
&quot;bbb&quot;,
&quot;ccc&quot;,
[
&quot;ddd&quot;,
&quot;eee&quot;
],
&quot;fff&quot;,
&quot;ggg&quot;,
[
&quot;111&quot;,
&quot;222&quot;
],
&quot;444&quot;,
&quot;555&quot;
], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }
> db.test0.update( { &quot;_id&quot; : 15 } , { $addToSet : { &quot;test1&quot;: [&quot;444&quot;,&quot;555&quot;]  } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [
&quot;aaa&quot;,
&quot;bbb&quot;,
&quot;ccc&quot;,
[
&quot;ddd&quot;,
&quot;eee&quot;
],
&quot;fff&quot;,
&quot;ggg&quot;,
[
&quot;111&quot;,
&quot;222&quot;
],
&quot;444&quot;,
&quot;555&quot;,
[
&quot;444&quot;,
&quot;555&quot;
]
], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }
> db.test0.update( { &quot;_id&quot; : 15 } , { $addToSet : { &quot;test1&quot;: [&quot;444&quot;,&quot;555&quot;]  } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [
&quot;aaa&quot;,
&quot;bbb&quot;,
&quot;ccc&quot;,
[
&quot;ddd&quot;,
&quot;eee&quot;
],
&quot;fff&quot;,
&quot;ggg&quot;,
[
&quot;111&quot;,
&quot;222&quot;
],
&quot;444&quot;,
&quot;555&quot;,
[
&quot;444&quot;,
&quot;555&quot;
]
], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }


7) $pop

删除数组内的一个&#20540;

用法:
删除最后一个&#20540;:{ $pop : { field : 1  } }

删除第一个&#20540;:{ $pop : { field : -1  } }

注意,只能删除一个&#20540;,也就是说只能用1或-1,而不能用2或-2来删除两条。mongodb 1.1及以后的版本才可以用,例:
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [
&quot;bbb&quot;,
&quot;ccc&quot;,
[
&quot;ddd&quot;,
&quot;eee&quot;
],
&quot;fff&quot;,
&quot;ggg&quot;,
[
&quot;111&quot;,
&quot;222&quot;
],
&quot;444&quot;
], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }
> db.test0.update( { &quot;_id&quot; : 15 } , { $pop : { &quot;test1&quot;: -1 } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [
&quot;ccc&quot;,
[
&quot;ddd&quot;,
&quot;eee&quot;
],
&quot;fff&quot;,
&quot;ggg&quot;,
[
&quot;111&quot;,
&quot;222&quot;
],
&quot;444&quot;
], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }
> db.test0.update( { &quot;_id&quot; : 15 } , { $pop : { &quot;test1&quot;: 1 } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;ccc&quot;, [ &quot;ddd&quot;, &quot;eee&quot; ], &quot;fff&quot;, &quot;ggg&quot;, [ &quot;111&quot;, &quot;222&quot; ] ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;,
&quot;test5&quot; : &quot;OK&quot; }

8) $pull

用法:$pull : { field : value } }

从数组field内删除一个等于value&#20540;。例:
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;ccc&quot;, [ &quot;ddd&quot;, &quot;eee&quot; ], &quot;fff&quot;, &quot;ggg&quot;, [ &quot;111&quot;, &quot;222&quot; ] ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;,
&quot;test5&quot; : &quot;OK&quot; }

> db.test0.update( { &quot;_id&quot; : 15 } , { $pull : { &quot;test1&quot;: &quot;ggg&quot; } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;ccc&quot;, [ &quot;ddd&quot;, &quot;eee&quot; ], &quot;fff&quot;, [ &quot;111&quot;, &quot;222&quot; ] ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot;
: &quot;OK&quot; }

9) $pullAll

用法:{ $pullAll : { field : value_array } }

同$pull,可以一次删除数组内的多个&#20540;。例:
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ &quot;ccc&quot;, [ &quot;ddd&quot;, &quot;eee&quot; ], &quot;fff&quot;, [ &quot;111&quot;, &quot;222&quot; ] ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot;
: &quot;OK&quot; }

> db.test0.update( { &quot;_id&quot; : 15 } , { $pullAll : { &quot;test1&quot;: [ &quot;ccc&quot; , &quot;fff&quot; ] } } );
> db.test0.find( { &quot;_id&quot; : 15 } );
{ &quot;_id&quot; : { &quot;floatApprox&quot; : 15 }, &quot;count&quot; : 18, &quot;test1&quot; : [ [ &quot;ddd&quot;, &quot;eee&quot; ], [ &quot;111&quot;, &quot;222&quot; ] ], &quot;test2&quot; : [ &quot;ccc&quot; ], &quot;test4&quot; : &quot;testv4&quot;, &quot;test5&quot; : &quot;OK&quot; }


10) $ 操作符

$是他自己的意思,代表按条件找出的数组里面某项他自己。呵呵,比较坳口。看一下官方的例子:

> t.find()
{ &quot;_id&quot; : ObjectId(&quot;4b97e62bf1d8c7152c9ccb74&quot;), &quot;title&quot; : &quot;ABC&quot;,  &quot;comments&quot; : [ { &quot;by&quot; : &quot;joe&quot;, &quot;votes&quot; : 3 }, { &quot;by&quot; : &quot;jane&quot;, &quot;votes&quot; : 7 } ] }

> t.update( {'comments.by':'joe'}, {$inc:{'comments.$.votes':1}}, false, true )

> t.find()
{ &quot;_id&quot; : ObjectId(&quot;4b97e62bf1d8c7152c9ccb74&quot;), &quot;title&quot; : &quot;ABC&quot;,  &quot;comments&quot; : [ { &quot;by&quot; : &quot;joe&quot;, &quot;votes&quot; : 4 }, { &quot;by&quot; : &quot;jane&quot;, &quot;votes&quot; : 7 } ] }

需要注意的是,$只会应用找到的第一条数组项,后面的就不管了。还是看例子:

> t.find();
{ &quot;_id&quot; : ObjectId(&quot;4b9e4a1fc583fa1c76198319&quot;), &quot;x&quot; : [ 1, 2, 3, 2 ] }
> t.update({x: 2}, {$inc: {&quot;x.$&quot;: 1}}, false, true);
> t.find();

还有注意的是$配合$unset使用的时候,会留下一个null的数组项,不过可以用{$pull:{x:null}}删除全部是null的数组项。例:
> t.insert({x: [1,2,3,4,3,2,3,4]})
> t.find()
{ &quot;_id&quot; : ObjectId(&quot;4bde2ad3755d00000000710e&quot;), &quot;x&quot; : [ 1, 2, 3, 4, 3, 2, 3, 4 ] }
> t.update({x:3}, {$unset:{&quot;x.$&quot;:1}})
> t.find()
{ &quot;_id&quot; : ObjectId(&quot;4bde2ad3755d00000000710e&quot;), &quot;x&quot; : [ 1, 2, null, 4, 3, 2, 3, 4 ] }

{ &quot;_id&quot; : ObjectId(&quot;4b9e4a1fc583fa1c76198319&quot;), &quot;x&quot; : [ 1, 3, 3, 2 ] }

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-137787-1-1.html 上篇帖子: MongoDb can't map file memory 下篇帖子: MongoDB数据库用户名和密码的设置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表