Get the App
SLTechnology News&Howtos  ›  Servers  › 

Connection of mongodb

Shulou Source: shulou.com Published: 2022-06-02 12:52:49 10月03日 Update

1. Connect to the local database

Mongodb://localhost

Mongo-- host remote IP-- port remote port-u account name-p password name

two。 Connect to the remote database and log in to localhost's admin database with the username fred and password foobar.

Mongodb://fred:foobar@localhost

3. Connect three mongo servers

Mongodb://localhost,localhost:27018,localhost:27019

Tags: Data database password account server user user name port three service login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Microsoft Huawei NVidia vpn