??? ??????? ?? ??????? ?? ???? ?? ??? ???? ?? ??? ?? ??? ?? ?? ????. MongoDB? ?? ??????? ?? ???? ?? ????? ?? ??? ???? ????.
Database
MongoDB? ?????? ??? Mysql? ?????? ??? ?????. ? ??????? ???? ??? ??? ? ????.
?? ??????? ??? ??? ???????. MongoDB?? ?????? ??? ??? ????. ?? ?????? ??? ????? ???? ?????. ?? admin, config, local ?? ?? ?? ???? ??? ? ????.
MongoDB??? ??????? ????? ??? ??? ????. dbName ??? ????? ?? ??????? ???? ?? ? ???? ?????.
> use huoying switched to db huoying
db ??? ???? ?? ???? ?????? ??? ?????.
> db huoying
?? ??????? ?? ??? show dbs? ?????.
> show dbs; admin 0.000GB config 0.000GB huoying 0.000GB local 0.000GB
Collections
MongoDB ???? Mysql? ???? ???? ???? ?? ??? ?????. ??? ????? ???? ?? ?? ??? ??? ???? ?? ??? ??? ??? ? ????. ?? ?? ????? ??? ?? ? ?? ??? ??? ?? ? ????.
{"name":"gwx", "age" : 30}, {"id":1, "score":100}
????? ??? ?? ??? ??? ????? ??? ??? ??? ?? ?? ??? ???? ????.
??? ??? ?? ??? ??? ???? ?????.
# 顯示的創(chuàng)建集合 > db.createCollection('huoying') { "ok" : 1 }
????? ???? ?????. ??? ?? ??? ? ???? ???? ??? ???? ?? ?????
Document
????? ??? ???????. ??? ??? ??? PHP? ?? ??? ?? JavaScript? ??? ?????.
??? ????? ??? ??? ?????. ?? ?? ??????.
# 下面兩個(gè)是不一樣的文檔,他們的數(shù)據(jù)類型不一樣 {"name":30} {"name":"30"} # 下面兩個(gè)是不一樣的文檔,鍵名不一樣 {"name":30} {"NAME":30}
New document
db.collection name.insertOne(?? ???) ??? ???? ??? ???? ??? ?????. ???? ???? ??? ????? ?????.
> db.users.insertOne({"name":"gwx", "age":29}) { "acknowledged" : true, "insertedId" : ObjectId("5f0cfdbb7688816db4d031bc") } > db.users.find() { "_id" : ObjectId("5f0cfdbb7688816db4d031bc"), "name" : "gwx", "age" : 29 } >
?? ??
?? ??? ??????? ????? ?????. ?????? ? ?? ????? ????, ? ??? ??? ??? ?? ? ???? ???? ? ??? ? ??? ?????.
> db.users.update({name:"gwx"}, {name:"monkeyking", age:500}) WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 }) > db.users.find() { "_id" : ObjectId("5f0cfdbb7688816db4d031bc"), "name" : "monkeyking", "age" : 500 }
?? ??
??? ????? ??? ?????
> db.users.remove({age:500}) WriteResult({ "nRemoved" : 1 })
? ??? MongoDB ??????, ???, ??? ??? ?? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?? ??? ? ???? ??? ? ??? ??? ??????. ????? ??? ? ?? ?? ??? ???? ??. ???? ??? ?? ????? ????? ??? ????? ???? ??? ????? ??? ?????. ?? ???? ???? ???? ????? ???? ???? ???? ????? ??????. ????? Composer? ?? Andres-Montanez/Residations-Bundle? ???? ??? ?????? ??? ?? ???? ??? ?? ?? ?????. ?? ??? ?? ???? ?? ? ????.

CentOS ???? GitLab ?????? ?? ??? ??? ??????? ???? ?? GitLab? ????? ???? ? ??? ?????. Gitlab? MySQL, PostgreSQL ? MongoDB? ??? ??? ??????? ?????. ? ??? ??? ??????? ???? ???? ??? ??? ?????. ?????? ?? ?? ?? MySQL : ?? ???? RDBMS (Relational Database Management System). PostgreSQL : ??? ?? ?? RDBM? ??? ?? ? ?? ??? ???? ?? ??? ??? ???? ? ?????. MongoDB : ???? NOSQL ??????, ?? ??? ?????

MongoDB? ??? ??? ???? ???? ? ???? Oracle? ?? ???? ??? ?????? ??? ?? ????? ?????. 1. MongoDB? ??? ?? ??? ??? ??? ???? ???? ?????. 2. Oracle? ???? ??? ???? ???? ?? ???? ?????. 3. MongoDB? ?? ??? ???? Oracle? ??? ??? ?????. 4. MongoDB? ?? ??? ?? ????? ????? Oracle? ?????? ??? ?? ????? ?????.

MongoDB? ????? ?? ??? ? ?? ?? ? ?? ??? ??? ?? Oracle? ??? ??? ???? ??? ????? ?????. 1. MongoDB? ?? ??? ? ?? ???? ??? ??? ???? ???? ???? ?????. 2. Oracle ??? ? ??? ??? ??? ???? ???? ?? ??? ?????. 3. MongoDB? ??? ?? ???? ???, RAC? ?? ???? ??? ???????. 4. MongoDB? ?? ?? ??? ?? ? Oracle? ?? ?? ??? ??? ??? ?????.

CentOS ??? ??? MongoDB ???? ?? ??? ?? ??? ??? ??? CentOS ????? MongoDB ??? ?????? ??? ??? ??? ???? ??? ?? ? ???? ???? ?? ? ????. Docker ???? ???? ?? ??, ??? ??? ??, ?? ???? ?? ? ?? ???? ??? ?? ?? ????? ?? ??? ?????. ?? ?? : MongoDump ??? ???? Manual ?? ??? ?????? (? : Mongodump-HlocalHost : 27017-U username-P password-d ?????? ?? -o/?? ????? ??? ??? ??????? ??? ? ?? ???? ??? ?? ????? ???????.

MongoDB ???? ????? ?? ??? ?????. 1. ??? ???? ??? ???? ????. 2. ????? ??? ??? ?? ? ??????? ??????. 3. CreateUser ??? ???? ???? ???? ??? ?? ? ?????? ??? ??? ??????. 4. GetUsers ??? ???? ?? ? ???? ??????. 5. ????? ?? ???? ?? ?? ??? ????? ??? ??? ?????.

??? ????? MongoDB ??????? ?????? ?? ??? ?? ?????. 1 ?? : ?? MongoDB ?? ?? Debian ???? MongoDB? ???? ??? ??????. ??? ?? ?? ????? ?? MongoDB ??? ?????? : https://docs.mongodb.com/manual/tutorial/install-mongodb-ondodb-on-debian/step 2 : ??? ? ?? ?? ??? ?? ???? ??? ????.
