Lub zos database hauv MongoDB yog dab tsi?
Lub zos database hauv MongoDB yog dab tsi?

Video: Lub zos database hauv MongoDB yog dab tsi?

Video: Lub zos database hauv MongoDB yog dab tsi?
Video: Kuv hmoov phem los koj siab phem-Karaoke 2024, Tej zaum
Anonim

Txheej txheem cej luam. Txhua yam mongod muaj nws tus kheej hauv zos database , uas khaws cov ntaub ntawv siv hauv cov txheej txheem rov ua dua, thiab lwm yam piv txwv cov ntaub ntawv tshwj xeeb. Cov hauv zos database yog invisible rau replication: collections nyob rau hauv lub hauv zos database tsis yog replicated.

Dhau li ntawd, puas yog MongoDB hauv zos database?

Txheej txheem cej luam. Txhua yam mongod muaj nws tus kheej hauv zos database , uas khaws cov ntaub ntawv siv hauv cov txheej txheem rov ua dua, thiab lwm yam piv txwv cov ntaub ntawv tshwj xeeb. Cov hauv zos database yog invisible rau replication: collections nyob rau hauv lub hauv zos database tsis yog replicated.

Qhov thib ob, kuv tuaj yeem siv MongoDB hauv zos? Siv a hauv zos piv txwv ntawm MongoDB yog ib txoj kev yooj yim heev. Peb yuav siv mongooseJS, Node pob rau kev ua haujlwm nrog MongoDB . Peb yuav kuj muab mongoose ib lub npe database los txuas rau (nws tsis tas yuav tsim txij li thaum mongoose yuav tsim nws rau peb). Nov yog qee qhov qauv coj los txuas rau database hauv Node.

Yog li ntawd, lub zos database yog dab tsi?

A hauv zos database yog ib qho yog hauv zos rau koj daim ntawv thov nkaus xwb. Nws siv cov ntaub ntawv SDF, uas yog SQL Server CE (Compact Edition) hom. Tsis tas yuav nruab ib lub server kom nkag mus rau SDF database . Koj tsuas yog faib cov DLLs uas tsim SSCE nrog rau koj lub app thiab nkag mus rau cov ntaub ntawv ncaj qha.

MongoDB txuas rau database li cas?

Rau txuas rau koj lub zos MongoDB , koj teev Hostname rau localhost thiab Chaw nres nkoj rau 27017. Cov nqi no yog lub neej ntawd rau txhua lub zos MongoDB kev sib txuas (tshwj tsis yog koj hloov lawv). Xovxwm txuas , thiab koj yuav tsum pom cov databases hauv koj lub zos MongoDB.

Pom zoo: